Mercurial > kallithea
comparison rhodecode/controllers/bookmarks.py @ 1818:cf51bbfb120e beta
auto white-space removal
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 29 Dec 2011 07:35:51 +0200 |
parents | d0effbe1acb1 |
children | 89efedac4e6c |
comparison
equal
deleted
inserted
replaced
1817:523b1011a625 | 1818:cf51bbfb120e |
---|---|
43 super(BookmarksController, self).__before__() | 43 super(BookmarksController, self).__before__() |
44 | 44 |
45 def index(self): | 45 def index(self): |
46 if c.rhodecode_repo.alias != 'hg': | 46 if c.rhodecode_repo.alias != 'hg': |
47 raise HTTPNotFound() | 47 raise HTTPNotFound() |
48 | 48 |
49 c.repo_bookmarks = OrderedDict() | 49 c.repo_bookmarks = OrderedDict() |
50 | 50 |
51 bookmarks = [(name, c.rhodecode_repo.get_changeset(hash_)) for \ | 51 bookmarks = [(name, c.rhodecode_repo.get_changeset(hash_)) for \ |
52 name, hash_ in c.rhodecode_repo._repo._bookmarks.items()] | 52 name, hash_ in c.rhodecode_repo._repo._bookmarks.items()] |
53 ordered_tags = sorted(bookmarks, key=lambda x: x[1].date, reverse=True) | 53 ordered_tags = sorted(bookmarks, key=lambda x: x[1].date, reverse=True) |