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).
--- a/mercurial/cmdutil.py Fri Apr 18 17:25:10 2008 +0200
+++ b/mercurial/cmdutil.py Sat Apr 19 10:42:30 2008 +0200
@@ -395,7 +395,7 @@
repo.copy(origsrc, abstarget)
if rename and not dryrun:
- repo.remove([abssrc], True)
+ repo.remove([abssrc], not after)
# pat: ossep
# dest ossep