diff -r cc2bbe2701a3 -r 79de4e86d9a4 tests/test-uncommit.t --- 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