equal
deleted
inserted
replaced
3155 if dobackup and not opts.get('no_backup') and util.lexists(target): |
3155 if dobackup and not opts.get('no_backup') and util.lexists(target): |
3156 bakname = "%s.orig" % rel |
3156 bakname = "%s.orig" % rel |
3157 ui.note(_('saving current version of %s as %s\n') % |
3157 ui.note(_('saving current version of %s as %s\n') % |
3158 (rel, bakname)) |
3158 (rel, bakname)) |
3159 if not opts.get('dry_run'): |
3159 if not opts.get('dry_run'): |
3160 util.copyfile(target, bakname) |
3160 util.rename(target, bakname) |
3161 if ui.verbose or not exact: |
3161 if ui.verbose or not exact: |
3162 msg = xlist[1] |
3162 msg = xlist[1] |
3163 if not isinstance(msg, basestring): |
3163 if not isinstance(msg, basestring): |
3164 msg = msg(abs) |
3164 msg = msg(abs) |
3165 ui.status(msg % rel) |
3165 ui.status(msg % rel) |