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

Angel Ezquerra angel.ezquerra at gmail.com
Mon Sep 24 00:24:34 CDT 2012


On Wed, Aug 8, 2012 at 5:34 PM, Angel Ezquerra <angel.ezquerra at gmail.com> wrote:
> # 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="",

Are there any further comments on this patch? I fixed the issues that
were raised and resend it to the list quite a while ago...

Cheers,

Angel


More information about the Mercurial-devel mailing list