--- a/contrib/hgk Sat Mar 28 19:34:03 2015 +0100
+++ b/contrib/hgk Sat Mar 28 19:36:21 2015 +0100
@@ -177,12 +177,15 @@
set ncmupdate 1
set limit 0
set revargs {}
+ set showhidden no
for {set i 0} {$i < [llength $rargs]} {incr i} {
set opt [lindex $rargs $i]
- if {$opt == "--limit"} {
+ switch -- $opt --limit {
incr i
set limit [lindex $rargs $i]
- } else {
+ } --hidden {
+ set showhidden yes
+ } default {
lappend revargs $opt
}
}
@@ -201,6 +204,9 @@
if {$limit > 0} {
set parsed_args [concat -n $limit $parsed_args]
}
+ if {$showhidden} {
+ append parsed_args --hidden
+ }
if [catch {
set commfd [open "|{$env(HG)} --config ui.report_untrusted=false debug-rev-list --header --topo-order --parents $parsed_args" r]
} err] {
--- a/hgext/hgk.py Sat Mar 28 19:34:03 2015 +0100
+++ b/hgext/hgk.py Sat Mar 28 19:36:21 2015 +0100
@@ -349,6 +349,9 @@
"start interactive history viewer"
os.chdir(repo.root)
optstr = ' '.join(['--%s %s' % (k, v) for k, v in opts.iteritems() if v])
+ if repo.filtername is None:
+ optstr += '--hidden'
+
cmd = ui.config("hgk", "path", "hgk") + " %s %s" % (optstr, " ".join(etc))
ui.debug("running %s\n" % cmd)
ui.system(cmd)