comparison tests/test-histedit-arguments.t @ 19047:81de87f8b480

histedit: protect against duplicated entries Before this change one would issue rules with duplicated entries. For this to happen some other changeset had to be missing to maintain the rules length.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 18 Apr 2013 15:22:24 +0200
parents f77c23ec09f7
children 1163ff06ce89
comparison
equal deleted inserted replaced
19046:36adbbe960ca 19047:81de87f8b480
122 > pick 08d98a8350f3 4 five 122 > pick 08d98a8350f3 4 five
123 > EOF 123 > EOF
124 abort: unknown action "coin" 124 abort: unknown action "coin"
125 [255] 125 [255]
126 126
127 Test duplicated changeset
128 ---------------------------------------
129
130 So one is missing and one appear twice.
131
132 $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF
133 > pick eb57da33312f 2 three
134 > pick eb57da33312f 2 three
135 > pick 08d98a8350f3 4 five
136 > EOF
137 abort: duplicated command for changeset eb57da33312f
138 [255]
139
127 Test short version of command 140 Test short version of command
128 --------------------------------------- 141 ---------------------------------------
129 142
130 Note: we use varying amounts of white space between command name and changeset 143 Note: we use varying amounts of white space between command name and changeset
131 short hash. This tests issue3893. 144 short hash. This tests issue3893.