# HG changeset patch # User Alexis S. L. Carvalho # Date 2008-04-19 08:42:30 # Node ID 30d3d531e11a3d9668d82d51a1314f18a95f36c0 # Parent c242fc76958eb41b776ac11c0e41360df0fa499b 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). diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -395,7 +395,7 @@ def copy(ui, repo, pats, opts, rename=Fa repo.copy(origsrc, abstarget) if rename and not dryrun: - repo.remove([abssrc], True) + repo.remove([abssrc], not after) # pat: ossep # dest ossep