# HG changeset patch # User TK Soh # Date 2007-06-04 14:16:53 # Node ID 1774c037fbd2dcd1b04bc257886470a50fab32c7 # Parent b2338c0cf4688766655a22239fe3c856208265e9 hgk: display tags that contain spaces diff --git a/contrib/hgk b/contrib/hgk --- a/contrib/hgk +++ b/contrib/hgk @@ -264,9 +264,8 @@ proc readrefs {} { regsub -all "\r\n" $tags "\n" tags set lines [split $tags "\n"] foreach f $lines { - set f [regexp -all -inline {\S+} $f] - set direct [lindex $f 0] - set full [lindex $f 1] + regexp {(\S+)$} $f full + regsub {\s+(\S+)$} $f "" direct set sha [split $full ':'] set tag [lindex $sha 1] lappend tagids($direct) $tag