[PATCH 05 of 10] histedit-test: test unknown changeset
pierre-yves.david at logilab.fr
pierre-yves.david at logilab.fr
Thu Apr 18 10:29:20 CDT 2013
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at logilab.fr>
# Date 1366285859 -7200
# Thu Apr 18 13:50:59 2013 +0200
# Node ID 4bb8ea96798d4c8634cf2def42f741954b7fb8c7
# Parent aefa522078d14fc1ac815c18dba2884c648cd852
histedit-test: test unknown changeset
We had no test for this case.
diff --git a/tests/test-histedit-arguments.t b/tests/test-histedit-arguments.t
--- a/tests/test-histedit-arguments.t
+++ b/tests/test-histedit-arguments.t
@@ -100,10 +100,21 @@ Test malformed line
> pick 08d98a8350f3 4 five
> EOF
abort: malformed line "pickeb57da33312f2three"
[255]
+Test unknown changeset
+---------------------------------------
+
+ $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF
+ > pick 0123456789ab 2 three
+ > pick c8e68270e35a 3 four
+ > pick 08d98a8350f3 4 five
+ > EOF
+ abort: unknown changeset 0123456789ab listed
+ [255]
+
Test short version of command
---------------------------------------
Note: we use various number of white space between command name and changeset
short hash. This test issue3893.
More information about the Mercurial-devel
mailing list