Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc1, 0.4rc2, and 0.4rc3

hggtk/changeset: set mono tag on changeset text iteratively

This is more efficient than applying it at the end, and is less disruptive
visually.

Changeset 0e7781407c14

Parent e248b972dd37

by Steve Borho

Changes to one file · Browse files at 0e7781407c14 Showing diff from parent e248b972dd37 Diff from another changeset...

 
172
173
174
175
176
177
178
179
180
 
197
198
199
 
 
200
201
202
 
172
173
174
 
 
 
175
176
177
 
194
195
196
197
198
199
200
201
@@ -172,9 +172,6 @@
  try:   status, file, txt = iterator.next()   except StopIteration: - # TODO: apply more efficiently - sob, eob = buf.get_bounds() - buf.apply_tag_by_name("mono", sob, eob)   return False     lines = unicode(txt, 'latin-1', 'replace').splitlines() @@ -197,6 +194,8 @@
  mark = 'mark_%d' % offset   buf.create_mark(mark, pos)   filelist.append((status, file, mark, True, stats)) + sob, eob = buf.get_bounds() + buf.apply_tag_by_name("mono", pos, eob)   return True     # Hacked up version of mercurial.patch.diff()