Mercurial > kallithea
comparison pylons_app/controllers/summary.py @ 389:174785aa5dc4
fixed sorting of tags and branches. Fix made in vcs.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 05 Aug 2010 23:59:41 +0200 |
parents | ec7b76d4bda4 |
children | 6a506a7acd1a |
comparison
equal
deleted
inserted
replaced
388:3bcf9529d221 | 389:174785aa5dc4 |
---|---|
53 'protocol': e.get('wsgi.url_scheme'), | 53 'protocol': e.get('wsgi.url_scheme'), |
54 'user':str(c.hg_app_user.username), | 54 'user':str(c.hg_app_user.username), |
55 'host':e.get('HTTP_HOST'), | 55 'host':e.get('HTTP_HOST'), |
56 'repo_name':c.repo_name, } | 56 'repo_name':c.repo_name, } |
57 c.clone_repo_url = uri | 57 c.clone_repo_url = uri |
58 c.repo_tags = {} | 58 c.repo_tags = OrderedDict() |
59 for name, hash in c.repo_info.tags.items()[:10]: | 59 for name, hash in c.repo_info.tags.items()[:10]: |
60 c.repo_tags[name] = c.repo_info.get_changeset(hash) | 60 c.repo_tags[name] = c.repo_info.get_changeset(hash) |
61 | 61 |
62 c.repo_branches = {} | 62 c.repo_branches = OrderedDict() |
63 for name, hash in c.repo_info.branches.items()[:10]: | 63 for name, hash in c.repo_info.branches.items()[:10]: |
64 c.repo_branches[name] = c.repo_info.get_changeset(hash) | 64 c.repo_branches[name] = c.repo_info.get_changeset(hash) |
65 | 65 |
66 c.commit_data = self.__get_commit_stats(c.repo_info) | 66 c.commit_data = self.__get_commit_stats(c.repo_info) |
67 | 67 |