Mercurial > hg-stable
changeset 6908:b77c25c2d6c0
Do not sort hgwebdir repositories if python list or tuple is given.
This was introduced by changeset f67d1468ac50 (util: add sort helper)
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 19 Aug 2008 18:17:11 +0200 |
parents | 6dcbe191a9b5 |
children | b5a6fce0bc29 |
files | mercurial/hgweb/hgwebdir_mod.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py Mon Aug 18 16:50:36 2008 -0500 +++ b/mercurial/hgweb/hgwebdir_mod.py Tue Aug 19 18:17:11 2008 +0200 @@ -19,8 +19,8 @@ class hgwebdir(object): def __init__(self, config, parentui=None): def cleannames(items): - return util.sort([(util.pconvert(name).strip('/'), path) - for name, path in items]) + return [(util.pconvert(name).strip('/'), path) + for name, path in items] self.parentui = parentui or ui.ui(report_untrusted=False, interactive = False) @@ -33,7 +33,7 @@ self.repos = cleannames(config) self.repos_sorted = ('', False) elif isinstance(config, dict): - self.repos = cleannames(config.items()) + self.repos = util.sort(cleannames(config.items())) else: if isinstance(config, util.configparser): cp = config