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

status: replace line-ends after truncating

fixes #220

Changeset f89a1436a902

Parent 541d9229dc67

by Steve Borho

Changes to one file · Browse files at f89a1436a902 Showing diff from parent 541d9229dc67 Diff from another changeset...

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