changeset 4750: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 a72dd3bfce41 438603c1eb6f
files contrib/hgk
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/hgk
+++ b/contrib/hgk
@@ -2819,7 +2819,9 @@ proc gettreediffline {gdtf ids} {
 	}
 	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
 }