From cb9d7d3a2e7f3827f6858ec76ac2bc35f77c1c05 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 25 Nov 2008 00:26:25 +0100 Subject: [PATCH] hgweb: Point hgwebdir.cgi at /etc/hgweb.conf. /etc/hgweb.conf points hgweb at /data/vcs/hg. --- etc/hgweb.conf | 2 ++ usr/local/lib/cgi-bin/hgwebdir.cgi | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 etc/hgweb.conf diff --git a/etc/hgweb.conf b/etc/hgweb.conf new file mode 100644 index 0000000..0549245 --- /dev/null +++ b/etc/hgweb.conf @@ -0,0 +1,2 @@ +[collections] +/ = /data/vcs/hg diff --git a/usr/local/lib/cgi-bin/hgwebdir.cgi b/usr/local/lib/cgi-bin/hgwebdir.cgi index b5c7e79..bd14582 100755 --- a/usr/local/lib/cgi-bin/hgwebdir.cgi +++ b/usr/local/lib/cgi-bin/hgwebdir.cgi @@ -43,5 +43,5 @@ import mercurial.hgweb.wsgicgi as wsgicgi # Alternatively you can pass a list of ('virtual/path', '/real/path') tuples # or use a dictionary with entries like 'virtual/path': '/real/path' -application = hgwebdir('hgweb.config') +application = hgwebdir('/etc/hgweb.conf') wsgicgi.launch(application) -- 2.30.2