Mercurial > hg-stable
changeset 9989:60cefb8b3c85 stable
hgk: do not ignore ---/+++ lines in diff
author | Fabian Kreutz <project+hg@fabian-kreutz.de> |
---|---|
date | Wed, 02 Dec 2009 14:30:39 +0200 |
parents | ed290e503b8a |
children | e97dd3a8e8d7 8bce1e0d2801 |
files | contrib/hgk |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/hgk Tue Dec 01 19:30:49 2009 -0600 +++ b/contrib/hgk Wed Dec 02 14:30:39 2009 +0200 @@ -3154,8 +3154,8 @@ set pad [string range "----------------------------------------" 1 $l] $ctext insert end "$pad $header $pad\n" filesep set diffinhdr 1 - } elseif {[regexp {^(---|\+\+\+)} $line]} { - set diffinhdr 0 + } elseif {[regexp {^(---|\+\+\+) } $line] && $diffinhdr} { + set diffinhdr 1 } elseif {[regexp {^@@ -([0-9]+),([0-9]+) \+([0-9]+),([0-9]+) @@(.*)} \ $line match f1l f1c f2l f2c rest]} { if {$gaudydiff} {