Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
17837:b623e323c561 | 17838:d51364b318ea |
---|---|
291 try: | 291 try: |
292 d = (get_mtime(path), util.makedate()[1]) | 292 d = (get_mtime(path), util.makedate()[1]) |
293 except OSError: | 293 except OSError: |
294 continue | 294 continue |
295 | 295 |
296 # add '/' to the name to make it obvious that | |
297 # the entry is a directory, not a regular repository | |
296 row = dict(contact="", | 298 row = dict(contact="", |
297 contact_sort="", | 299 contact_sort="", |
298 name=name, | 300 name=name + '/', |
299 name_sort=name, | 301 name_sort=name, |
300 url=url, | 302 url=url, |
301 description="", | 303 description="", |
302 description_sort="", | 304 description_sort="", |
303 lastchange=d, | 305 lastchange=d, |