diff mercurial/hgweb/hgwebdir_mod.py @ 17838:d51364b318ea

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.
author Angel Ezquerra <angel.ezquerra@gmail.com>
date Thu, 26 Jul 2012 21:29:39 +0200
parents 5a9acb0b2086
children 40374059d227 e4f17956f45a
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py	Thu Oct 18 10:31:15 2012 +0900
+++ b/mercurial/hgweb/hgwebdir_mod.py	Thu Jul 26 21:29:39 2012 +0200
@@ -293,9 +293,11 @@
                     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="",