diff -r 5146de7bce96 -r 5a9acb0b2086 mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Mon Jun 18 18:19:28 2012 +0200 +++ b/mercurial/hgweb/hgwebdir_mod.py Thu Jun 21 12:50:15 2012 +0200 @@ -23,10 +23,10 @@ repos = [] for prefix, root in cleannames(paths): roothead, roottail = os.path.split(root) - # "foo = /bar/*" makes every subrepo of /bar/ to be - # mounted as foo/subrepo - # and "foo = /bar/**" also recurses into the subdirectories, - # remember to use it without working dir. + # "foo = /bar/*" or "foo = /bar/**" lets every repo /bar/N in or below + # /bar/ be served as as foo/N . + # '*' will not search inside dirs with .hg (except .hg/patches), + # '**' will search inside dirs with .hg (and thus also find subrepos). try: recurse = {'*': False, '**': True}[roottail] except KeyError: