# HG changeset patch # User mpm@selenic.com # Date 1118199751 28800 # Node ID 5da941efbb527fa0695197d6c9af0a1ab3e4675c # Parent 4f8174389001197176091fbc9779696f8345c58d [PATCH] hgk should parse dates in the diff output -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH] hgk should parse dates in the diff output hgk doesn't deal well with the difflib style diffs, it expects the filename to be the last thing on the line. This patch fixes the regexp to stop reading the filename at the first tab. Signed-off-by: Chris Mason manifest hash: 9c5bcf427455dcf306ab6f91b1986723caa83f36 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCpl/HywK+sNU5EO8RAgAjAKCOuZsRtJDbdurTQry+7krtLTtRQQCfXLuN LZEFkcOGS0jiAC6vci/RLJ0= =jkr1 -----END PGP SIGNATURE----- diff -r 4f8174389001 -r 5da941efbb52 contrib/hgk --- a/contrib/hgk Tue Jun 07 19:00:56 2005 -0800 +++ b/contrib/hgk Tue Jun 07 19:02:31 2005 -0800 @@ -1181,7 +1181,6 @@ return } set file [lindex $line 5] - puts stderr "line $file\n" lappend treediffs($id) $file } @@ -1221,7 +1220,7 @@ return } $ctext conf -state normal - if {[regexp {^---[ \t]+([^/])*/(.*)} $line match s1 fname]} { + if {[regexp {^---[ \t]+([^/])*/([^\t]*)} $line match s0 fname]} { # start of a new file $ctext insert end "\n" $ctext tag add $curdifftag $curtagstart end