Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

logview: introduce [tortoisehg] "hidetags" config option

Example use case: Specify

[tortoisehg]
hidetags=qbase qparent qtip

in mercurial.ini to suppress those standard mq tags.

The logviewer must be restarted when changing that setting.

Changeset 0852985f7fba

Parent 310364be9462

by Adrian Buehlmann

Changes to one file · Browse files at 0852985f7fba Showing diff from parent 310364be9462 Diff from another changeset...

 
52
53
54
 
 
55
56
57
 
153
154
155
156
157
 
 
 
158
159
160
 
52
53
54
55
56
57
58
59
 
155
156
157
 
 
158
159
160
161
162
163
@@ -52,6 +52,8 @@
  self.branchtags = repo.branchtags()   self.origtip = origtip   self.bundleview = bview + self.hidetags = self.repo.ui.config( + 'tortoisehg', 'hidetags', '').split()     def refresh(self):   repo = self.repo @@ -153,8 +155,9 @@
  taglist = hglib.toutf(', '.join(tags))   tstr = ''   for tag in tags: - tstr += '<span color="%s" background="%s"> %s </span> ' % \ - ('black', '#ffffaa', tag) + if tag not in self.hidetags: + tstr += '<span color="%s" background="%s"> %s </span> ' % \ + ('black', '#ffffaa', tag)     branch = ctx.branch()   bstr = ''