Show More
@@ -343,11 +343,24 b' proc parsecommit {id contents listed old' | |||||
343 | proc readrefs {} { |
|
343 | proc readrefs {} { | |
344 | global tagids idtags headids idheads tagcontents env curid |
|
344 | global tagids idtags headids idheads tagcontents env curid | |
345 |
|
345 | |||
346 |
set |
|
346 | set status [catch {exec $env(HG) --config ui.report_untrusted=false id} curid] | |
|
347 | if { $status != 0 } { | |||
|
348 | puts $::errorInfo | |||
|
349 | if { ![string equal $::errorCode NONE] } { | |||
|
350 | exit 2 | |||
|
351 | } | |||
|
352 | } | |||
347 | regexp -- {[[:xdigit:]]+} $curid curid |
|
353 | regexp -- {[[:xdigit:]]+} $curid curid | |
348 |
|
354 | |||
349 |
set |
|
355 | set status [catch {exec $env(HG) --config ui.report_untrusted=false tags} tags] | |
|
356 | if { $status != 0 } { | |||
|
357 | puts $::errorInfo | |||
|
358 | if { ![string equal $::errorCode NONE] } { | |||
|
359 | exit 2 | |||
|
360 | } | |||
|
361 | } | |||
350 | regsub -all "\r\n" $tags "\n" tags |
|
362 | regsub -all "\r\n" $tags "\n" tags | |
|
363 | ||||
351 | set lines [split $tags "\n"] |
|
364 | set lines [split $tags "\n"] | |
352 | foreach f $lines { |
|
365 | foreach f $lines { | |
353 | regexp {(\S+)$} $f full |
|
366 | regexp {(\S+)$} $f full |
General Comments 0
You need to be logged in to leave comments.
Login now