# HG changeset patch # User Angel Ezquerra # Date 2012-07-26 19:29:39 # Node ID d51364b318eab1871af13f30be099799c04a43d1 # Parent b623e323c56177b5e781543d3df2ece1d474b414 hgwebdir: make collapsed folders easier to distinguish from repositories Add a "/" character after the collapsed folder names, to make them easier to distinguish from regular repository and subrepository entries. diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -293,9 +293,11 @@ class hgwebdir(object): except OSError: continue + # add '/' to the name to make it obvious that + # the entry is a directory, not a regular repository row = dict(contact="", contact_sort="", - name=name, + name=name + '/', name_sort=name, url=url, description="",