Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgwebdir_mod.py @ 11677:8f8a7976f4bc stable
hgwebdir: allow pure relative globs in paths
This allows the (to me, in some setups) obvious configuration:
[paths]
/ = *
or
/ = **
Relative paths used to work with [collections] even though it isn't documented.
Perhaps it should be documented?
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 21 Jul 2010 22:22:28 +0200 |
parents | 48163c39e1f1 |
children | 9617803b1acb |
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py Thu Jul 22 15:26:26 2010 -0400 +++ b/mercurial/hgweb/hgwebdir_mod.py Wed Jul 21 22:22:28 2010 +0200 @@ -32,7 +32,7 @@ except KeyError: repos.append((prefix, root)) continue - roothead = os.path.normpath(roothead) + roothead = os.path.normpath(os.path.abspath(roothead)) for path in util.walkrepos(roothead, followsym=True, recurse=recurse): path = os.path.normpath(path) name = util.pconvert(path[len(roothead):]).strip('/')