diff hgext/graphlog.py @ 13971:bfeaa88b875d

move canonpath from util to scmutil
author Adrian Buehlmann <adrian@cadifra.com>
date Wed, 20 Apr 2011 21:41:41 +0200
parents 12f60626d817
children 9966c95b8c4f
line wrap: on
line diff
--- a/hgext/graphlog.py	Wed Apr 20 19:54:57 2011 +0200
+++ b/hgext/graphlog.py	Wed Apr 20 21:41:41 2011 +0200
@@ -18,7 +18,7 @@
 from mercurial.i18n import _
 from mercurial.node import nullrev
 from mercurial import cmdutil, commands, extensions
-from mercurial import hg, util, graphmod
+from mercurial import hg, scmutil, util, graphmod
 
 ASCIIDATA = 'ASC'
 
@@ -250,7 +250,7 @@
         return
 
     if path:
-        path = util.canonpath(repo.root, os.getcwd(), path)
+        path = scmutil.canonpath(repo.root, os.getcwd(), path)
     if path: # could be reset in canonpath
         revdag = graphmod.filerevs(repo, path, start, stop, limit)
     else: