156 |
156 |
157 $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF |
157 $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF |
158 > pick eb57da33312f 2 three |
158 > pick eb57da33312f 2 three |
159 > pick 08d98a8350f3 4 five |
159 > pick 08d98a8350f3 4 five |
160 > EOF |
160 > EOF |
161 abort: missing rules for changeset c8e68270e35a |
161 hg: parse error: missing rules for changeset c8e68270e35a |
162 (use "drop c8e68270e35a" to discard, see also: "hg help -e histedit.config") |
162 (use "drop c8e68270e35a" to discard, see also: "hg help -e histedit.config") |
163 [255] |
163 [255] |
164 |
164 |
165 Test that extra revisions are detected |
165 Test that extra revisions are detected |
166 --------------------------------------- |
166 --------------------------------------- |
168 $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF |
168 $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF |
169 > pick 6058cbb6cfd7 0 one |
169 > pick 6058cbb6cfd7 0 one |
170 > pick c8e68270e35a 3 four |
170 > pick c8e68270e35a 3 four |
171 > pick 08d98a8350f3 4 five |
171 > pick 08d98a8350f3 4 five |
172 > EOF |
172 > EOF |
173 abort: may not use "pick" with changesets other than the ones listed |
173 hg: parse error: may not use "pick" with changesets other than the ones listed |
174 [255] |
174 [255] |
175 |
175 |
176 Test malformed line |
176 Test malformed line |
177 --------------------------------------- |
177 --------------------------------------- |
178 |
178 |
179 $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF |
179 $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF |
180 > pickeb57da33312f2three |
180 > pickeb57da33312f2three |
181 > pick c8e68270e35a 3 four |
181 > pick c8e68270e35a 3 four |
182 > pick 08d98a8350f3 4 five |
182 > pick 08d98a8350f3 4 five |
183 > EOF |
183 > EOF |
184 abort: malformed line "pickeb57da33312f2three" |
184 hg: parse error: malformed line "pickeb57da33312f2three" |
185 [255] |
185 [255] |
186 |
186 |
187 Test unknown changeset |
187 Test unknown changeset |
188 --------------------------------------- |
188 --------------------------------------- |
189 |
189 |
190 $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF |
190 $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF |
191 > pick 0123456789ab 2 three |
191 > pick 0123456789ab 2 three |
192 > pick c8e68270e35a 3 four |
192 > pick c8e68270e35a 3 four |
193 > pick 08d98a8350f3 4 five |
193 > pick 08d98a8350f3 4 five |
194 > EOF |
194 > EOF |
195 abort: unknown changeset 0123456789ab listed |
195 hg: parse error: unknown changeset 0123456789ab listed |
196 [255] |
196 [255] |
197 |
197 |
198 Test unknown command |
198 Test unknown command |
199 --------------------------------------- |
199 --------------------------------------- |
200 |
200 |
201 $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF |
201 $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF |
202 > coin eb57da33312f 2 three |
202 > coin eb57da33312f 2 three |
203 > pick c8e68270e35a 3 four |
203 > pick c8e68270e35a 3 four |
204 > pick 08d98a8350f3 4 five |
204 > pick 08d98a8350f3 4 five |
205 > EOF |
205 > EOF |
206 abort: unknown action "coin" |
206 hg: parse error: unknown action "coin" |
207 [255] |
207 [255] |
208 |
208 |
209 Test duplicated changeset |
209 Test duplicated changeset |
210 --------------------------------------- |
210 --------------------------------------- |
211 |
211 |
214 $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF |
214 $ HGEDITOR=cat hg histedit "tip^^" --commands - << EOF |
215 > pick eb57da33312f 2 three |
215 > pick eb57da33312f 2 three |
216 > pick eb57da33312f 2 three |
216 > pick eb57da33312f 2 three |
217 > pick 08d98a8350f3 4 five |
217 > pick 08d98a8350f3 4 five |
218 > EOF |
218 > EOF |
219 abort: duplicated command for changeset eb57da33312f |
219 hg: parse error: duplicated command for changeset eb57da33312f |
220 [255] |
220 [255] |
221 |
221 |
222 Test short version of command |
222 Test short version of command |
223 --------------------------------------- |
223 --------------------------------------- |
224 |
224 |