mercurial/patch.py
changeset 13971 bfeaa88b875d
parent 13970 d13913355390
child 14017 19a7b48446e3
equal deleted inserted replaced
13970:d13913355390 13971:bfeaa88b875d
    19     pass
    19     pass
    20 
    20 
    21 # helper functions
    21 # helper functions
    22 
    22 
    23 def copyfile(src, dst, basedir):
    23 def copyfile(src, dst, basedir):
    24     abssrc, absdst = [util.canonpath(basedir, basedir, x) for x in [src, dst]]
    24     abssrc, absdst = [scmutil.canonpath(basedir, basedir, x)
       
    25                         for x in [src, dst]]
    25     if os.path.lexists(absdst):
    26     if os.path.lexists(absdst):
    26         raise util.Abort(_("cannot create %s: destination already exists") %
    27         raise util.Abort(_("cannot create %s: destination already exists") %
    27                          dst)
    28                          dst)
    28 
    29 
    29     dstdir = os.path.dirname(absdst)
    30     dstdir = os.path.dirname(absdst)