Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/hgweb/hgwebdir_mod.py @ 4709:53eca35c3aeb
Add option "hidden" to hgwebdir.
TODO: should this option be renamed to 'hide_from_index' or
maybe to 'index_ignore' (like Apache's mod_autoindex) ?
author | Markus F.X.J. Oberhumer <markus@oberhumer.com> |
---|---|
date | Mon, 25 Jun 2007 14:46:20 +0200 |
parents | 12e4d9524951 |
children | 9b0ebb5e0f94 142a07e758c8 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -142,6 +142,9 @@ class hgwebdir(object): def get(section, name, default=None): return u.config(section, name, default, untrusted=True) + if u.configbool("web", "hidden", untrusted=True): + continue + url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name]) .replace("//", "/")) + '/'