Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0.4, 1.1, and 1.1.1

stable history: include branch heads in heads filter

Match the `hg heads` change in Mercurial 1.5

Changeset 74f375baf8e8

Parent ef283447b7bc

by David Wilhelm

Changes to 2 files · Browse files at 74f375baf8e8 Showing diff from parent ef283447b7bc Diff from another changeset...

 
1136
1137
1138
1139
 
1140
1141
1142
 
1136
1137
1138
 
1139
1140
1141
1142
@@ -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
121
122
 
 
 
 
 
 
 
 
 
 
123
124
125
 
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
@@ -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