mercurial/patch.py
changeset 13971 bfeaa88b875d
parent 13970 d13913355390
child 14017 19a7b48446e3
--- a/mercurial/patch.py	Wed Apr 20 19:54:57 2011 +0200
+++ b/mercurial/patch.py	Wed Apr 20 21:41:41 2011 +0200
@@ -21,7 +21,8 @@
 # helper functions
 
 def copyfile(src, dst, basedir):
-    abssrc, absdst = [util.canonpath(basedir, basedir, x) for x in [src, dst]]
+    abssrc, absdst = [scmutil.canonpath(basedir, basedir, x)
+                        for x in [src, dst]]
     if os.path.lexists(absdst):
         raise util.Abort(_("cannot create %s: destination already exists") %
                          dst)