changeset 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 b623e323c561
children d118a4f4fd16 653d2afdaf88
files mercurial/hgweb/hgwebdir_mod.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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="",