##// END OF EJS Templates
docopy: use repo.pathto to format paths for printing
Alexis S. L. Carvalho -
r4526:cbabc9ac default
parent child Browse files
Show More
@@ -507,8 +507,8 b' def docopy(ui, repo, pats, opts, wlock):'
507 507 target = repo.wjoin(abstarget)
508 508 if prevsrc is not None:
509 509 ui.warn(_('%s: not overwriting - %s collides with %s\n') %
510 (reltarget, util.localpath(abssrc),
511 util.localpath(prevsrc)))
510 (reltarget, repo.pathto(abssrc, cwd),
511 repo.pathto(prevsrc, cwd)))
512 512 return
513 513 if (not opts['after'] and os.path.exists(target) or
514 514 opts['after'] and repo.dirstate.state(abstarget) not in '?ar'):
General Comments 0
You need to be logged in to leave comments. Login now