tests/test-uncommit.t
changeset 4506 79de4e86d9a4
parent 3747 1e103c7f7663
child 4513 d70db7e455dc
child 4624 c9798965b1f4
--- 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