[PATCH 0 of 2] Fixes to hg serve --webdir-conf

Eric Hopper hopper at omnifarious.org
Mon Aug 6 15:52:38 CDT 2007


The first of these two patches fixes a bug in hg serve that caused
--webdir-conf to fail whenever hg serve wasn't run inside a repository,
which I suspect is the usual case.

This bug was introduced with changeset
9858477ed74cce9dc8f4069f9453a1bda0e13ba1

The second patch changes utils.walkdir to follow symlinks when given the
right parameter.  It uses device and inode numbers in order to track
where it's been to avoid cycles.  It also changes the handling of the
[collections] config section so that it follows symlinks by default.

The changes can also be pulled from the attached bundle.

4 files changed, 37 insertions(+), 10 deletions(-)
mercurial/commands.py           |    2 +-
mercurial/hgweb/hgwebdir_mod.py |    2 +-
mercurial/hgweb/server.py       |   30 +++++++++++++++++++++++-------
mercurial/util.py               |   13 ++++++++++++-

Thanks,
-- 
Eric Hopper

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixwebdir.hg
Type: application/octet-stream
Size: 1740 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20070806/0bba00cd/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20070806/0bba00cd/attachment.pgp 


More information about the Mercurial-devel mailing list