mercurial/commands.py
changeset 11630 0c23085f051f
parent 11615 6dbdf5c5c5bd
parent 11629 9e874ee0fe97
child 11644 c4f6f0a1bd5a
equal deleted inserted replaced
11627:04f76a954842 11630:0c23085f051f
  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)