Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7.5, 0.7.6, and 0.8

status: truncate hunk display lines at 128 chars

Fixes #182

Changeset b5d6b46c0a2e

Parent ff74e1221229

by Steve Borho

Changes to one file · Browse files at b5d6b46c0a2e Showing diff from parent ff74e1221229 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​status.py Stacked
 
897
898
899
900
 
901
902
903
 
916
917
918
919
 
920
921
922
 
897
898
899
 
900
901
902
903
 
916
917
918
 
919
920
921
922
@@ -897,7 +897,7 @@
  lines = chunk.readlines()   lines[-1] = lines[-1].strip('\n\r')   for line in lines: - line = gobject.markup_escape_text(toutf(line)) + line = gobject.markup_escape_text(toutf(line[:128]))   if line.startswith('---') or line.startswith('+++'):   hunk += '<span foreground="#000090">%s</span>' % line   elif line.startswith('-'): @@ -916,7 +916,7 @@
  lines = fp.readlines()   lines[-1] = lines[-1].strip('\n\r')   for line in lines: - hunk += gobject.markup_escape_text(toutf(line)) + hunk += gobject.markup_escape_text(toutf(line[:128]))   return hunk     def dohgdiff():