changeset 3180:eb0906ebba81

hgk: fix mixup of --limit and REVRANGE in hgk call
author TK Soh <teekaysoh@yahoo.com>
date Wed, 27 Sep 2006 08:27:16 -0500
parents 76ab39df0917
children f6c36cc92d02
files hgext/hgk.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/hgk.py	Wed Sep 27 12:08:33 2006 -0700
+++ b/hgext/hgk.py	Wed Sep 27 08:27:16 2006 -0500
@@ -279,8 +279,10 @@
 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,