Show More
@@ -456,16 +456,13 b' proc readrefs {} {' | |||
|
456 | 456 | exit 2 |
|
457 | 457 | } |
|
458 | 458 | } |
|
459 | regsub -all "\r\n" $tags "\n" tags | |
|
460 | ||
|
461 | set lines [split $tags "\n"] | |
|
462 | foreach f $lines { | |
|
463 | regexp {(\S+)$} $f full | |
|
464 | regsub {\s+(\S+)$} $f "" direct | |
|
465 | set sha [split $full ':'] | |
|
466 | set tag [lindex $sha 1] | |
|
467 | lappend tagids($direct) $tag | |
|
468 | lappend idtags($tag) $direct | |
|
459 | ||
|
460 | foreach {tag rev} $tags { | |
|
461 | # we use foreach as Tcl8.4 doesn't support lassign | |
|
462 | foreach {- id} [split $rev :] { | |
|
463 | lappend tagids($tag) $id | |
|
464 | lappend idtags($id) $tag | |
|
465 | } | |
|
469 | 466 | } |
|
470 | 467 | |
|
471 | 468 | set status [catch {exec $env(HG) --config ui.report_untrusted=false heads} heads] |
General Comments 0
You need to be logged in to leave comments.
Login now