diff hgext/graphlog.py @ 6969:d76f64cd4cb2

graphlog: fix calls from outside the repository (issue1285)
author Patrick Mezard <pmezard@gmail.com>
date Tue, 02 Sep 2008 09:25:29 +0200
parents e75aab656f46
children f7f0388f7bce
line wrap: on
line diff
--- a/hgext/graphlog.py	Sun Aug 31 11:36:07 2008 +0200
+++ b/hgext/graphlog.py	Tue Sep 02 09:25:29 2008 +0200
@@ -216,8 +216,9 @@
         return
     cs_printer = show_changeset(ui, repo, opts)
     if path:
-        cpath = canonpath(repo.root, os.getcwd(), path)
-        grapher = filelog_grapher(repo, cpath, start_rev, stop_rev)
+        path = canonpath(repo.root, os.getcwd(), path)
+    if path:
+        grapher = filelog_grapher(repo, path, start_rev, stop_rev)
     else:
         grapher = revision_grapher(repo, start_rev, stop_rev)
     repo_parents = repo.dirstate.parents()