Show More
@@ -3018,8 +3018,9 b' def revert(ui, repo, ctx, parents, *pats' | |||
|
3018 | 3018 | tobackup.add(abs) |
|
3019 | 3019 | elif (backup <= dobackup or wctx[abs].cmp(ctx[abs])): |
|
3020 | 3020 | bakname = scmutil.origpath(ui, repo, rel) |
|
3021 | relbakname = os.path.relpath(bakname) | |
|
3021 | 3022 | ui.note(_('saving current version of %s as %s\n') % |
|
3022 | (rel, bakname)) | |
|
3023 | (rel, relbakname)) | |
|
3023 | 3024 | if not opts.get('dry_run'): |
|
3024 | 3025 | if interactive: |
|
3025 | 3026 | util.copyfile(target, bakname) |
@@ -578,7 +578,7 b' Test orig files go where we want them' | |||
|
578 | 578 | $ echo moremore >> anotherlarge |
|
579 | 579 | $ hg revert anotherlarge -v --config 'ui.origbackuppath=.hg/origbackups' |
|
580 | 580 | creating directory: $TESTTMP/addrm2/.hg/origbackups/.hglf/sub |
|
581 |
saving current version of ../.hglf/sub/anotherlarge as |
|
|
581 | saving current version of ../.hglf/sub/anotherlarge as ../.hg/origbackups/.hglf/sub/anotherlarge | |
|
582 | 582 | reverting ../.hglf/sub/anotherlarge |
|
583 | 583 | creating directory: $TESTTMP/addrm2/.hg/origbackups/sub |
|
584 | 584 | found 90c622cf65cebe75c5842f9136c459333faf392e in store |
@@ -92,7 +92,7 b' Test creation of backup (.orig) file in ' | |||
|
92 | 92 | $ echo z > e |
|
93 | 93 | $ hg revert --all -v --config 'ui.origbackuppath=.hg/origbackups' |
|
94 | 94 | creating directory: $TESTTMP/repo/.hg/origbackups |
|
95 |
saving current version of e as |
|
|
95 | saving current version of e as .hg/origbackups/e | |
|
96 | 96 | reverting e |
|
97 | 97 | $ rm -rf .hg/origbackups |
|
98 | 98 |
General Comments 0
You need to be logged in to leave comments.
Login now