Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.6, 0.7, and 0.7.1

datamine: expand tabs in search and annotate output

Changeset fa36a04eb942

Parent 988cc5fc328c

by Steve Borho

Changes to one file · Browse files at fa36a04eb942 Showing diff from parent 988cc5fc328c Diff from another changeset...

Change 1 of 4 Show Entire File hggtk/​datamine.py Stacked
 
14
15
16
17
 
18
19
20
 
58
59
60
 
61
62
63
 
327
328
329
 
 
330
331
332
 
611
612
613
 
 
614
615
616
 
14
15
16
 
17
18
19
20
 
58
59
60
61
62
63
64
 
328
329
330
331
332
333
334
335
 
614
615
616
617
618
619
620
621
@@ -14,7 +14,7 @@
 import threading, thread2  import time  from mercurial import hg, ui, util, revlog -from hglib import hgcmd_toq, toutf, fromutf +from hglib import hgcmd_toq, toutf, fromutf, gettabwidth  from gdialog import *  from vis import treemodel  from vis.colormap import AnnotateColorMap, AnnotateColorSaturation @@ -58,6 +58,7 @@
    def load_settings(self, settings):   GDialog.load_settings(self, settings) + self.tabwidth = gettabwidth(self.ui)   # settings['datamine']     def get_body(self): @@ -327,6 +328,8 @@
  except ValueError:   continue   tip, user = self.get_rev_desc(long(revid)) + if self.tabwidth: + text = text.expandtabs(self.tabwidth)   model.append((revid, toutf(text), tip, toutf(path)))   if thread.isAlive():   return True @@ -611,6 +614,8 @@
  tip, user = self.get_rev_desc(rowrev)   ctx = self.repo.changectx(rowrev)   color = colormap.get_color(ctx, curdate) + if self.tabwidth: + text = text.expandtabs(self.tabwidth)   model.append((revid, toutf(text), tip, toutf(path.strip()),   color, toutf(user), len(model)+1))   if thread.isAlive():