Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
41604:e944cf4ce1a8 | 41605:7068c6b0114b |
---|---|
287 reverting b/b | 287 reverting b/b |
288 $ echo foobar > b/b | 288 $ echo foobar > b/b |
289 $ hg revert . | 289 $ hg revert . |
290 reverting b/b | 290 reverting b/b |
291 | 291 |
292 respects ui.relative-paths | |
293 -------------------------- | |
294 | |
295 $ echo foo > newdir/newfile | |
296 $ hg add newdir/newfile | |
297 $ hg revert --all --cwd newdir | |
298 forgetting newfile | |
299 | |
300 $ echo foo > newdir/newfile | |
301 $ hg add newdir/newfile | |
302 $ hg revert --all --cwd newdir --config ui.relative-paths=True | |
303 forgetting newfile | |
304 | |
305 $ echo foo > newdir/newfile | |
306 $ hg add newdir/newfile | |
307 $ hg revert --all --cwd newdir --config ui.relative-paths=False | |
308 forgetting newdir/newfile | |
292 | 309 |
293 reverting a rename target should revert the source | 310 reverting a rename target should revert the source |
294 -------------------------------------------------- | 311 -------------------------------------------------- |
295 | 312 |
296 $ hg mv a newa | 313 $ hg mv a newa |