Show More
@@ -177,12 +177,15 b' proc getcommits {rargs} {' | |||||
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 |
|
|
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 | } | |
@@ -201,6 +204,9 b' proc getcommits {rargs} {' | |||||
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] | |
203 | } |
|
206 | } | |
|
207 | if {$showhidden} { | |||
|
208 | append parsed_args --hidden | |||
|
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] { |
@@ -349,6 +349,9 b' def view(ui, repo, *etc, **opts):' | |||||
349 | "start interactive history viewer" |
|
349 | "start interactive history viewer" | |
350 | os.chdir(repo.root) |
|
350 | os.chdir(repo.root) | |
351 | optstr = ' '.join(['--%s %s' % (k, v) for k, v in opts.iteritems() if v]) |
|
351 | optstr = ' '.join(['--%s %s' % (k, v) for k, v in opts.iteritems() if v]) | |
|
352 | if repo.filtername is None: | |||
|
353 | optstr += '--hidden' | |||
|
354 | ||||
352 | cmd = ui.config("hgk", "path", "hgk") + " %s %s" % (optstr, " ".join(etc)) |
|
355 | cmd = ui.config("hgk", "path", "hgk") + " %s %s" % (optstr, " ".join(etc)) | |
353 | ui.debug("running %s\n" % cmd) |
|
356 | ui.debug("running %s\n" % cmd) | |
354 | ui.system(cmd) |
|
357 | ui.system(cmd) |
General Comments 0
You need to be logged in to leave comments.
Login now