histedit-test: test unknown command
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 18 Apr 2013 13:51:27 +0200
changeset 19044 f77c23ec09f7
parent 19043 7d27d80185f0
child 19045 080b801c34f1
histedit-test: test unknown command We had no tested for this case.
tests/test-histedit-arguments.t
--- a/tests/test-histedit-arguments.t	Thu Apr 18 13:50:59 2013 +0200
+++ b/tests/test-histedit-arguments.t	Thu Apr 18 13:51:27 2013 +0200
@@ -113,6 +113,17 @@
   abort: unknown changeset 0123456789ab listed
   [255]
 
+Test unknown command
+---------------------------------------
+
+  $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF
+  > coin eb57da33312f 2 three
+  > pick c8e68270e35a 3 four
+  > pick 08d98a8350f3 4 five
+  > EOF
+  abort: unknown action "coin"
+  [255]
+
 Test short version of command
 ---------------------------------------