comparison rhodecode/lib/vcs/backends/git/repository.py @ 4020:218ed589e44a

branch selectors: show closed branches too It would be even better if they were fetched dynamically somehow and perhaps placed in a sub sub menu ... but showing them in the list is often better than not showing them at all.
author Mads Kiilerich <madski@unity3d.com>
date Tue, 04 Jun 2013 13:26:41 +0200
parents f5a1314886ec
children 7c73f1868318
comparison
equal deleted inserted replaced
4019:18121c5425b8 4020:218ed589e44a
367 return {} 367 return {}
368 sortkey = lambda ctx: ctx[0] 368 sortkey = lambda ctx: ctx[0]
369 _branches = [(x[0], x[1][0]) 369 _branches = [(x[0], x[1][0])
370 for x in self._parsed_refs.iteritems() if x[1][1] == 'H'] 370 for x in self._parsed_refs.iteritems() if x[1][1] == 'H']
371 return OrderedDict(sorted(_branches, key=sortkey, reverse=False)) 371 return OrderedDict(sorted(_branches, key=sortkey, reverse=False))
372
373 @LazyProperty
374 def closed_branches(self):
375 return {}
372 376
373 @LazyProperty 377 @LazyProperty
374 def tags(self): 378 def tags(self):
375 return self._get_tags() 379 return self._get_tags()
376 380