changeset 3182:f6c36cc92d02

Merge with crew
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 27 Sep 2006 21:44:20 +0200
parents 3637d5d17cbc (current diff) eb0906ebba81 (diff)
children 0e6b58c7beea
files
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/hgk.py	Wed Sep 27 21:43:45 2006 +0200
+++ b/hgext/hgk.py	Wed Sep 27 21:44:20 2006 +0200
@@ -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,