Mercurial > evolve
diff 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 |
line wrap: on
line diff
--- a/tests/test-uncommit.t Thu Apr 11 17:45:36 2019 +0800 +++ b/tests/test-uncommit.t Tue Apr 02 22:42:01 2019 -0400 @@ -514,3 +514,22 @@ (use 'hg prune .' to remove it) $ hg status ? foo + +Bad explicit paths abort, like the bundled commit extension + + $ hg uncommit foo + abort: cannot uncommit "foo" + (file was untracked in working directory parent) + [255] + + $ hg ci -Aqm 'add foo' + $ hg uncommit bar + abort: cannot uncommit "bar" + (file does not exist) + [255] + $ hg uncommit d + abort: cannot uncommit "d" + (file was not changed in working directory parent) + [255] + + $ hg status