From patchwork Thu Apr 18 15:29:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [02,of,10] histedit-test: test that missing revision are detected From: Pierre-Yves David X-Patchwork-Id: 1416 Message-Id: <6f96687e9afe8573bee0.1366298957@crater2.logilab.fr> To: mercurial-devel@selenic.com Cc: pierre-yves.david@logilab.fr Date: Thu, 18 Apr 2013 17:29:17 +0200 # HG changeset patch # User Pierre-Yves David # Date 1366285688 -7200 # Thu Apr 18 13:48:08 2013 +0200 # Node ID 6f96687e9afe8573bee0dce320e66ba6842c1237 # Parent 9b9ba8e13e70668d248b0b3f074f1b83825e3d41 histedit-test: test that missing revision are detected We had not 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 @@ -68,10 +68,20 @@ Run on a revision not ancestors of the c $ hg histedit -r 4 abort: 08d98a8350f3 is not an ancestor of working directory [255] $ hg up --quiet +Test that missing revision 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 --------------------------------------- Note: we use various number of white space between command name and changeset short hash. This test issue3893.