Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

chunkselect: clean up test code

Changeset e9d6c59efd0d

Parent 03583e9a8a77

by Steve Borho

Changes to one file · Browse files at e9d6c59efd0d Showing diff from parent 03583e9a8a77 Diff from another changeset...

 
75
76
77
78
79
80
81
82
83
 
 
 
84
85
 
86
87
88
 
91
92
93
94
 
95
96
97
 
75
76
77
 
 
78
 
 
 
79
80
81
82
 
83
84
85
86
 
89
90
91
 
92
93
94
95
@@ -75,14 +75,12 @@
 def run(ui, *pats, **opts):   repo = hg.repository(ui)   fp = cStringIO.StringIO() - matcher = cmdutil.matchall(repo) - diffopts = mdiff.diffopts(git=True, nodates=True)   try: - node2, node1 = repo['tip'].node(), repo['tip'].parents()[0].node() - for s in patch.diff(repo, node1, node2, match=matcher, opts=diffopts): - fp.writelines(s.splitlines(True)) + diffopts = mdiff.diffopts(git=True, nodates=True) + for p in patch.diff(repo, repo['.'].node(), None, opts=diffopts): + fp.write(p)   except (IOError, error.RepoError, error.LookupError, util.Abort), e: - self.stat.stbar.set_text(str(e)) + print e   fp.seek(0)   hu = htmlui.htmlui()   items = [] @@ -91,7 +89,7 @@
  chunk.write(fp)   fp.seek(0)   for a, l in patch.difflabel(fp.readlines): - if a: hu.write(a, label=l) + hu.write(a, label=l)   o, e = hu.getdata()   items.append(o)