Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

changeset: a more precise check for diff hunk headers

it's not clear to me how to fix this entirely. This seems like a bug in the
original patch format, using --- to open a diff hunk and - to open a delete
line.

Changeset 449ace4589ba

Parent a93f4d1bf676

by Steve Borho

Changes to one file · Browse files at 449ace4589ba Showing diff from parent a93f4d1bf676 Diff from another changeset...

 
387
388
389
390
 
391
392
 
393
394
395
 
387
388
389
 
390
391
 
392
393
394
395
@@ -387,9 +387,9 @@
  offset += len(txt.decode('utf-8'))   for l1 in difflines[1:]:   l = hglib.toutf(l1) - if l.startswith('+++'): + if l.startswith('--- '):   continue - if l.startswith('---'): + if l.startswith('+++ '):   continue   if l.startswith('@@'):   tag = 'blue'