[PATCH] Allow hgrc [paths] section to traverse the children of the _current_ directory

Jonathan Watt jwatt at jwatt.org
Thu Jun 25 16:44:14 CDT 2009


Hi,

I have various mercurial repositories all stored in the 'hg' directory at
http://domain.tld/hg/, accessible at URLs like http://domain.tld/hg/repoA/. This
'hg' directory, as well as containing repository subdirectories, also contains
my hgwebdir.cgi and hgweb.config. My hgweb.config would look like:

[paths]
repoA = repoA
repoB = repoB
repoC = repoC
...

However, it's a bit tedious and silly to have to keep adding these lines. One
alternative would be to move hgwebdir.cgi and hgweb.config up a directory, and
change hgweb.config to contain:

[paths]
hg = hg/*

Ideally I'd like to leave them where they are and have it contain this though:

[paths]
. = ./*

That way all the hg stuff is contained in the 'hg' directory, including
hgwebdir.cgi and hgweb.config.

That's exactly what the attached patch allows.

Jonathan


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-hgrc-paths.diff
Url: http://selenic.com/pipermail/mercurial-devel/attachments/20090625/a20b3767/attachment.txt 


More information about the Mercurial-devel mailing list