Mercurial > evolve
comparison tests/test-uncommit.t @ 4506:79de4e86d9a4
uncommit: abort if an explicitly given file cannot be uncommitted (BC)
This corresponds to f4147ca63d39 in the core uncommit extension.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 02 Apr 2019 22:42:01 -0400 |
parents | 1e103c7f7663 |
children | d70db7e455dc c9798965b1f4 |
comparison
equal
deleted
inserted
replaced
4505:cc2bbe2701a3 | 4506:79de4e86d9a4 |
---|---|
512 $ hg uncommit --revert --all | 512 $ hg uncommit --revert --all |
513 new changeset is empty | 513 new changeset is empty |
514 (use 'hg prune .' to remove it) | 514 (use 'hg prune .' to remove it) |
515 $ hg status | 515 $ hg status |
516 ? foo | 516 ? foo |
517 | |
518 Bad explicit paths abort, like the bundled commit extension | |
519 | |
520 $ hg uncommit foo | |
521 abort: cannot uncommit "foo" | |
522 (file was untracked in working directory parent) | |
523 [255] | |
524 | |
525 $ hg ci -Aqm 'add foo' | |
526 $ hg uncommit bar | |
527 abort: cannot uncommit "bar" | |
528 (file does not exist) | |
529 [255] | |
530 $ hg uncommit d | |
531 abort: cannot uncommit "d" | |
532 (file was not changed in working directory parent) | |
533 [255] | |
534 | |
535 $ hg status |