comparison mercurial/cmdutil.py @ 6566:30d3d531e11a

rename --after: do not unlink source file (issue910) "rename --after a.txt A.txt" on case mangling systems (e.g. Windows) erroneously deleted A.txt (even if modified).
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sat, 19 Apr 2008 10:42:30 +0200
parents 0bb76d168437
children e08e0367ba15 7f0dd352fb4d
comparison
equal deleted inserted replaced
6561:c242fc76958e 6566:30d3d531e11a
393 repo.add([abstarget]) 393 repo.add([abstarget])
394 elif not dryrun: 394 elif not dryrun:
395 repo.copy(origsrc, abstarget) 395 repo.copy(origsrc, abstarget)
396 396
397 if rename and not dryrun: 397 if rename and not dryrun:
398 repo.remove([abssrc], True) 398 repo.remove([abssrc], not after)
399 399
400 # pat: ossep 400 # pat: ossep
401 # dest ossep 401 # dest ossep
402 # srcs: list of (hgsep, hgsep, ossep, bool) 402 # srcs: list of (hgsep, hgsep, ossep, bool)
403 # return: function that takes hgsep and returns ossep 403 # return: function that takes hgsep and returns ossep