hgext/graphlog.py
changeset 6970 f7f0388f7bce
parent 6762 f67d1468ac50
parent 6969 d76f64cd4cb2
child 7280 810ca383da9c
--- a/hgext/graphlog.py	Tue Sep 02 01:19:12 2008 +0200
+++ b/hgext/graphlog.py	Tue Sep 02 09:47:40 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()