diff tests/test-histedit-arguments.t @ 19041:3b52b15e0b3d

histedit-test: test that extra revisions are detected We had not tested for this case.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 18 Apr 2013 11:54:31 -0400
parents 7eb6bfe0b5a2
children 52366b37f897
line wrap: on
line diff
--- a/tests/test-histedit-arguments.t	Thu Apr 18 11:53:58 2013 -0400
+++ b/tests/test-histedit-arguments.t	Thu Apr 18 11:54:31 2013 -0400
@@ -80,6 +80,17 @@
   abort: must specify a rule for each changeset once
   [255]
 
+Test that extra revisions are detected
+---------------------------------------
+
+  $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF
+  > pick 6058cbb6cfd7 0 one
+  > pick c8e68270e35a 3 four
+  > pick 08d98a8350f3 4 five
+  > EOF
+  abort: may not use changesets other than the ones listed
+  [255]
+
 Test short version of command
 ---------------------------------------