changeset 19040:7eb6bfe0b5a2

histedit-test: test that missing 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:53:58 -0400
parents 41669a18a7d6
children 3b52b15e0b3d
files tests/test-histedit-arguments.t
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-histedit-arguments.t	Thu Apr 18 11:52:34 2013 -0400
+++ b/tests/test-histedit-arguments.t	Thu Apr 18 11:53:58 2013 -0400
@@ -70,6 +70,16 @@
   [255]
   $ hg up --quiet
 
+Test that missing revisions are detected
+---------------------------------------
+
+  $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF
+  > pick eb57da33312f 2 three
+  > pick 08d98a8350f3 4 five
+  > EOF
+  abort: must specify a rule for each changeset once
+  [255]
+
 Test short version of command
 ---------------------------------------