Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0, 2.0.1, and 2.0.2

stable thgrepo: livebranches was already implemented as namedbranches

Changeset 067a5dc46d11

Parent 0ff506605e74

by Steve Borho

Changes to 4 files · Browse files at 067a5dc46d11 Showing diff from parent 0ff506605e74 Diff from another changeset...

 
45
46
47
48
 
49
50
51
 
45
46
47
 
48
49
50
51
@@ -45,7 +45,7 @@
  branchCombo.setEditable(True)     wbu = hglib.tounicode(wctx.branch()) - for name in repo.livebranches: + for name in repo.namedbranches:   if name == wbu:   continue   branchCombo.addItem(name)
 
209
210
211
212
 
213
214
215
 
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
 
209
210
211
 
212
213
214
215
 
241
242
243
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
244
245
246
@@ -209,7 +209,7 @@
   _uiprops = '''_uifiles _uimtime _shell postpull tabwidth maxdiff   deadbranches _exts _thghiddentags displayname summarylen - shortname mergetools livebranches namedbranches'''.split() + shortname mergetools namedbranches'''.split()  _thgrepoprops = '''_thgmqpatchnames thgmqunappliedpatches   _branchheads'''.split()   @@ -241,22 +241,6 @@
  return changectx     @propertycache - def livebranches(self): - '''return a list of live branch names in unicode''' - lives = [] - cl = self.changelog - for branch, heads in self.branchmap().iteritems(): - if branch in self.deadbranches: - continue - bheads = [h for h in heads if ('close' not in cl.read(h)[5])] - if not bheads: - # ignore branches with all heads closed - continue - lives.append(hglib.tounicode(branch)) - lives.sort() - return lives - - @propertycache   def _thghiddentags(self):   ht = self.ui.config('tortoisehg', 'hidetags', '')   return [t.strip() for t in ht.split()]
 
58
59
60
61
 
62
63
64
 
58
59
60
 
61
62
63
64
@@ -58,7 +58,7 @@
  rev = str(rev)   combo.addItem(hglib.tounicode(rev))   combo.setCurrentIndex(0) - for name in self.repo.livebranches: + for name in self.repo.namedbranches:   combo.addItem(name)     tags = list(self.repo.tags())
 
52
53
54
55
 
56
57
58
 
52
53
54
 
55
56
57
58
@@ -52,7 +52,7 @@
  combo.addItem(hglib.tounicode(rev))   combo.setCurrentIndex(0)   - for name in repo.livebranches: + for name in repo.namedbranches:   combo.addItem(name)     tags = list(self.repo.tags())