hgk: Allow specifying hgk path in [hgk]path
authormpm@selenic.com
Fri, 23 Sep 2005 19:41:45 -0700
changeset 1345 c5594ff3f95c
parent 1344 ca0e27e05de3
child 1346 88a9c75dc76a
hgk: Allow specifying hgk path in [hgk]path
contrib/hgk.py
--- a/contrib/hgk.py
+++ b/contrib/hgk.py
@@ -316,7 +316,7 @@ def revlist(ui, repo, *revs, **opts):
 def view(ui, repo, *etc):
     "start interactive history viewer"
     os.chdir(repo.root)
-    os.system("hgk " + " ".join(etc))
+    os.system(ui.config("hgk", "path", "hgk") + " " + " ".join(etc))
 
 cmdtable = {
     "view": (view, [], 'hg view'),