equal
deleted
inserted
replaced
175 set startmsecs [clock clicks -milliseconds] |
175 set startmsecs [clock clicks -milliseconds] |
176 set nextupdate [expr $startmsecs + 100] |
176 set nextupdate [expr $startmsecs + 100] |
177 set ncmupdate 1 |
177 set ncmupdate 1 |
178 set limit 0 |
178 set limit 0 |
179 set revargs {} |
179 set revargs {} |
|
180 set showhidden no |
180 for {set i 0} {$i < [llength $rargs]} {incr i} { |
181 for {set i 0} {$i < [llength $rargs]} {incr i} { |
181 set opt [lindex $rargs $i] |
182 set opt [lindex $rargs $i] |
182 if {$opt == "--limit"} { |
183 switch -- $opt --limit { |
183 incr i |
184 incr i |
184 set limit [lindex $rargs $i] |
185 set limit [lindex $rargs $i] |
185 } else { |
186 } --hidden { |
|
187 set showhidden yes |
|
188 } default { |
186 lappend revargs $opt |
189 lappend revargs $opt |
187 } |
190 } |
188 } |
191 } |
189 if [catch { |
192 if [catch { |
190 set parse_args [concat --default HEAD $revargs] |
193 set parse_args [concat --default HEAD $revargs] |
198 } |
201 } |
199 set parsed_args $revargs |
202 set parsed_args $revargs |
200 } |
203 } |
201 if {$limit > 0} { |
204 if {$limit > 0} { |
202 set parsed_args [concat -n $limit $parsed_args] |
205 set parsed_args [concat -n $limit $parsed_args] |
|
206 } |
|
207 if {$showhidden} { |
|
208 append parsed_args --hidden |
203 } |
209 } |
204 if [catch { |
210 if [catch { |
205 set commfd [open "|{$env(HG)} --config ui.report_untrusted=false debug-rev-list --header --topo-order --parents $parsed_args" r] |
211 set commfd [open "|{$env(HG)} --config ui.report_untrusted=false debug-rev-list --header --topo-order --parents $parsed_args" r] |
206 } err] { |
212 } err] { |
207 puts stderr "Error executing hg debug-rev-list: $err" |
213 puts stderr "Error executing hg debug-rev-list: $err" |