Mercurial > hg
diff tests/test-revert.t @ 41605:7068c6b0114b
revert: respect ui.relative-paths
Differential Revision: https://phab.mercurial-scm.org/D5874
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 05 Feb 2019 10:30:05 -0800 |
parents | 4d4842445afc |
children | 5c2a4f37eace |
line wrap: on
line diff
--- a/tests/test-revert.t Tue Feb 05 09:44:22 2019 -0800 +++ b/tests/test-revert.t Tue Feb 05 10:30:05 2019 -0800 @@ -289,6 +289,23 @@ $ hg revert . reverting b/b +respects ui.relative-paths +-------------------------- + + $ echo foo > newdir/newfile + $ hg add newdir/newfile + $ hg revert --all --cwd newdir + forgetting newfile + + $ echo foo > newdir/newfile + $ hg add newdir/newfile + $ hg revert --all --cwd newdir --config ui.relative-paths=True + forgetting newfile + + $ echo foo > newdir/newfile + $ hg add newdir/newfile + $ hg revert --all --cwd newdir --config ui.relative-paths=False + forgetting newdir/newfile reverting a rename target should revert the source --------------------------------------------------