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 utilities for getting 'deadbranch' and 'hidetags' settings

Changeset 6d48f9de7779

Parent 8cc8eed22f46

by Yuki KODAMA

Changes to one file · Browse files at 6d48f9de7779 Showing diff from parent 8cc8eed22f46 Diff from another changeset...

 
92
93
94
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
96
97
 
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
@@ -92,6 +92,24 @@
  _maxdiff = maxdiff * 1024   return _maxdiff   +_deadbranch = None +def getdeadbranch(ui): + global _deadbranch + if _deadbranch is None: + db = toutf(ui.config('tortoisehg', 'deadbranch', '')) + dblist = [b.strip() for b in db.split(',')] + _deadbranch = dblist + return _deadbranch + +_hidetags = None +def gethidetags(ui): + global _hidetags + if _hidetags is None: + tags = toutf(ui.config('tortoisehg', 'hidetags', '')) + taglist = [t.strip() for t in tags.split()] + _hidetags = taglist + return _hidetags +  def diffexpand(line):   'Expand tabs in a line of diff/patch text'   if _tabwidth is None: