equal
deleted
inserted
replaced
3164 for abs, (rel, exact) in sorted(names.items()): |
3164 for abs, (rel, exact) in sorted(names.items()): |
3165 mfentry = mf.get(abs) |
3165 mfentry = mf.get(abs) |
3166 target = repo.wjoin(abs) |
3166 target = repo.wjoin(abs) |
3167 def handle(xlist, dobackup): |
3167 def handle(xlist, dobackup): |
3168 xlist[0].append(abs) |
3168 xlist[0].append(abs) |
3169 if dobackup and not opts.get('no_backup') and os.path.lexists(target): |
3169 if (dobackup and not opts.get('no_backup') and |
|
3170 os.path.lexists(target)): |
3170 bakname = "%s.orig" % rel |
3171 bakname = "%s.orig" % rel |
3171 ui.note(_('saving current version of %s as %s\n') % |
3172 ui.note(_('saving current version of %s as %s\n') % |
3172 (rel, bakname)) |
3173 (rel, bakname)) |
3173 if not opts.get('dry_run'): |
3174 if not opts.get('dry_run'): |
3174 util.rename(target, bakname) |
3175 util.rename(target, bakname) |