--- a/mercurial/cmdutil.py Thu Apr 24 13:37:29 2008 +0200 +++ b/mercurial/cmdutil.py Thu Apr 24 17:15:55 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