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

status: fix diff header for overlarge files

Changeset 002bf6b4b1d9

Parent a67c0d8915ea

by Steve Borho

Changes to one file · Browse files at 002bf6b4b1d9 Showing diff from parent a67c0d8915ea Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​status.py Stacked
 
916
917
918
919
 
 
 
920
921
922
923
 
924
925
926
 
916
917
918
 
919
920
921
922
923
 
924
925
926
927
928
@@ -916,11 +916,13 @@
  fctx = None   if fctx and fctx.size() > hglib.getmaxdiffsize(self.ui):   # Fake patch that displays size warning - lines = ['diff --git -r a/%s b/%s\n' % (wfile, wfile)] + lines = ['diff --git a/%s b/%s\n' % (wfile, wfile)] + lines.append(_('File is larger than the specified max size.\n')) + lines.append(_('Hunk selection is disabled for this file.\n'))   lines.append('--- a/%s\n' % wfile)   lines.append('+++ b/%s\n' % wfile) - lines.append(_('File is larger than the specified max diff size\n'))   difftext.writelines(lines) + difftext.seek(0)   else:   wfiles = [self.repo.wjoin(wfile)]   matcher = cmdutil.match(self.repo, wfiles, self.opts)