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

changeset: cleanup hglib imports

Changeset 1a04d7a61f01

Parent 1765be09445e

by Steve Borho

Changes to one file · Browse files at 1a04d7a61f01 Showing diff from parent 1765be09445e Diff from another changeset...

 
22
23
24
25
 
26
27
28
 
374
375
376
377
378
 
379
380
381
 
650
651
652
653
654
655
656
 
657
658
659
 
22
23
24
 
25
26
27
28
 
374
375
376
 
 
377
378
379
380
 
649
650
651
 
652
653
 
654
655
656
657
@@ -22,7 +22,7 @@
 from mercurial import context, patch, revlog  from gdialog import *  from hgcmd import CmdDialog -from hglib import toutf, fromutf, displaytime +from hglib import toutf, fromutf, displaytime, gettabwidth, hgcmd_toq  from gtklib import StatusBar    class ChangeSet(GDialog): @@ -374,8 +374,7 @@
    def prepare_diff(self, difflines, offset, fname):   '''Borrowed from hgview; parses changeset diffs''' - import hglib - tw = hglib.gettabwidth(self.ui) + tw = gettabwidth(self.ui)   DIFFHDR = "=== %s ===\n"   idx = 0   outlines = [] @@ -650,10 +649,9 @@
  result = fd.run()   if result:   import Queue - import hglib   q = Queue.Queue()   cpath = util.canonpath(self.repo.root, self.cwd, self.curfile) - hglib.hgcmd_toq(self.repo.root, q, 'cat', '--rev', + hgcmd_toq(self.repo.root, q, 'cat', '--rev',   str(self.currev), '--output', result, cpath)     def _view_file_rev(self, menuitem):