Show More
@@ -1976,7 +1976,7 b' def revert(ui, repo, ctx, parents, *pats' | |||||
1976 | # make backup if not in target manifest |
|
1976 | # make backup if not in target manifest | |
1977 | (modified, revert, remove, True, True), |
|
1977 | (modified, revert, remove, True, True), | |
1978 | (added, revert, remove, True, False), |
|
1978 | (added, revert, remove, True, False), | |
1979 |
(removed, undelete, None, |
|
1979 | (removed, undelete, None, True, False), | |
1980 | (deleted, revert, remove, False, False), |
|
1980 | (deleted, revert, remove, False, False), | |
1981 | ) |
|
1981 | ) | |
1982 |
|
1982 | |||
@@ -1986,7 +1986,8 b' def revert(ui, repo, ctx, parents, *pats' | |||||
1986 | def handle(xlist, dobackup): |
|
1986 | def handle(xlist, dobackup): | |
1987 | xlist[0].append(abs) |
|
1987 | xlist[0].append(abs) | |
1988 | if (dobackup and not opts.get('no_backup') and |
|
1988 | if (dobackup and not opts.get('no_backup') and | |
1989 |
os.path.lexists(target) |
|
1989 | os.path.lexists(target) and | |
|
1990 | repo[None][abs].cmp(ctx[abs])): | |||
1990 | bakname = "%s.orig" % rel |
|
1991 | bakname = "%s.orig" % rel | |
1991 | ui.note(_('saving current version of %s as %s\n') % |
|
1992 | ui.note(_('saving current version of %s as %s\n') % | |
1992 | (rel, bakname)) |
|
1993 | (rel, bakname)) |
General Comments 0
You need to be logged in to leave comments.
Login now