changeset 4741:4a84f7421692

Make hgk handle filenames with spaces (issue49)
author Thomas Arendsen Hein <thomas@intevation.de>
date Sun, 01 Jul 2007 19:15:25 +0200
parents e1d1b22bab57
children 438603c1eb6f a72dd3bfce41
files contrib/hgk
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/hgk	Sun Jul 01 15:22:49 2007 +0200
+++ b/contrib/hgk	Sun Jul 01 19:15:25 2007 +0200
@@ -2819,7 +2819,9 @@
 	}
 	return
     }
-    set file [lindex $line 5]
+    set tab1 [expr [string first "\t" $line] + 1]
+    set tab2 [expr [string first "\t" $line $tab1] - 1]
+    set file [string range $line $tab1 $tab2]
     lappend treediff $file
 }