# HG changeset patch # User TK Soh # Date 1159363636 18000 # Node ID eb0906ebba81c7c9e1f50b9c316e7cc475fc968b # Parent 76ab39df0917fb88b48daaf7075e1d56a9444e63 hgk: fix mixup of --limit and REVRANGE in hgk call diff --git a/hgext/hgk.py b/hgext/hgk.py --- a/hgext/hgk.py +++ b/hgext/hgk.py @@ -279,8 +279,10 @@ def revlist(ui, repo, *revs, **opts): def view(ui, repo, *etc, **opts): "start interactive history viewer" os.chdir(repo.root) - optstr = ' '.join(['--%s %s' % (k, v) for k, v in opts.iteritems()]) - os.system(ui.config("hgk", "path", "hgk") + " %s %s" % (optstr, " ".join(etc))) + optstr = ' '.join(['--%s %s' % (k, v) for k, v in opts.iteritems() if v]) + cmd = ui.config("hgk", "path", "hgk") + " %s %s" % (optstr, " ".join(etc)) + ui.debug("running %s\n" % cmd) + os.system(cmd) cmdtable = { "view": (view,