branch | stable |
changeset 11629 | 9e874ee0fe97 |
parent 11612 | 0e789549271d |
child 11630 | 0c23085f051f |
child 11636 | c10eaf1210cd |
--- a/mercurial/commands.py Tue Jul 20 14:00:47 2010 -0400 +++ b/mercurial/commands.py Tue Jul 13 03:04:14 2010 +0200 @@ -3167,7 +3167,7 @@ ui.note(_('saving current version of %s as %s\n') % (rel, bakname)) if not opts.get('dry_run'): - util.copyfile(target, bakname) + util.rename(target, bakname) if ui.verbose or not exact: msg = xlist[1] if not isinstance(msg, basestring):