hgwebdir: make collapsed folders easier to distinguish from repositories
authorAngel Ezquerra <angel.ezquerra@gmail.com>
Thu, 26 Jul 2012 21:29:39 +0200
changeset 17838 d51364b318ea
parent 17837 b623e323c561
child 17839 d118a4f4fd16
child 17853 653d2afdaf88
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.
mercurial/hgweb/hgwebdir_mod.py
--- 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="",