Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

hglib: add utility for gathering live branches

Changeset 318f2e974c67

Parent c5fa9e7fc34c

by Yuki KODAMA

Changes to one file · Browse files at 318f2e974c67 Showing diff from parent c5fa9e7fc34c Diff from another changeset...

 
101
102
103
 
 
 
 
 
 
 
 
104
105
106
 
101
102
103
104
105
106
107
108
109
110
111
112
113
114
@@ -101,6 +101,14 @@
  _deadbranch = dblist   return _deadbranch   +def getlivebranch(repo): + lives = [] + deads = getdeadbranch(repo.ui) + for branch in repo.branchtags().keys(): + if branch not in deads: + lives.append(branch) + return lives +  _hidetags = None  def gethidetags(ui):   global _hidetags