Changeset 74f375baf8e8…
Parent ef283447b7bc…
by
Changes to 2 files · Browse files at 74f375baf8e8 Showing diff from parent ef283447b7bc Diff from another changeset...
@@ -1136,7 +1136,7 @@ filtertext += _("Parents")
elif self.filter == 'heads':
ftitle(_('heads'))
- heads = [self.repo[x].rev() for x in self.repo.heads()]
+ heads = hglib.getlivebheads(self.repo)
opts['revlist'] = [str(x) for x in heads]
self.graphview.refresh(False, [], opts)
filtertext += _("Heads")
|
@@ -120,6 +120,16 @@ lives.append(branch.replace('\0', ''))
return lives
+def getlivebheads(repo):
+ '''return a list of revs of live branch heads'''
+ bheads = []
+ for b, ls in repo.branchmap().iteritems():
+ bheads += [repo[x] for x in ls]
+ heads = [x.rev() for x in bheads if not x.extra().get('close')]
+ heads.sort()
+ heads.reverse()
+ return heads
+
_hidetags = None
def gethidetags(ui):
global _hidetags
|
Loading...