[PATCH] Allow hgwebdir collections to follow symlinks

Eric Hopper hopper at omnifarious.org
Wed Aug 8 17:40:35 CDT 2007


This change enables hg to safely follow symlinks in trees specified in
the [collections] section of the hgweb config file.

The code will ensure that no repository will ever appear more than one
in the list of repositories found after searching the tree.

The method used to avoid cycles will fail horribly on Windows, but
then again Windows doesn't have symlinks.

2 files changed, 17 insertions(+), 2 deletions(-)
mercurial/hgweb/hgwebdir_mod.py |    2 +-
mercurial/util.py               |   17 ++++++++++++++++-


-------------- next part --------------
A non-text attachment was scrubbed...
Name: bats-bleeding.patch
Type: text/x-patch
Size: 2174 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20070808/d4d4a3d5/attachment.bin 
-------------- 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/20070808/d4d4a3d5/attachment.pgp 


More information about the Mercurial-devel mailing list