equal
deleted
inserted
replaced
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) |