[PATCH] hgk should parse dates in the diff output
authormpm@selenic.com
Tue, 07 Jun 2005 19:02:31 -0800
changeset 274 5da941efbb52
parent 273 4f8174389001
child 275 61d45b0ba8fb
[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 <mason@suse.com> manifest hash: 9c5bcf427455dcf306ab6f91b1986723caa83f36 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCpl/HywK+sNU5EO8RAgAjAKCOuZsRtJDbdurTQry+7krtLTtRQQCfXLuN LZEFkcOGS0jiAC6vci/RLJ0= =jkr1 -----END PGP SIGNATURE-----
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