[PATCH 1 of 2 V2] hgwebdir: make collapsed folders easier to distinguish from repositories

Angel Ezquerra angel.ezquerra at gmail.com
Wed Aug 8 10:34:04 CDT 2012


# HG changeset patch
# User Angel Ezquerra <angel.ezquerra at gmail.com>
# Date 1343330979 -7200
# Node ID 8ede519e92791f3ad2fddafcaa5f40976c3bdc69
# Parent  75b1ef91e3a2226aae4084de1b5371b07c1ef5a2
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 @@
                     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="",


More information about the Mercurial-devel mailing list