Show More
@@ -621,10 +621,7 b' def concludenode(repo, rev, p1, p2, comm' | |||
|
621 | 621 | if commitmsg is None: |
|
622 | 622 | commitmsg = ctx.description() |
|
623 | 623 | keepbranch = keepbranches and repo[p1].branch() != ctx.branch() |
|
624 |
extra = ctx.ex |
|
|
625 | if not keepbranches: | |
|
626 | del extra['branch'] | |
|
627 | extra['rebase_source'] = ctx.hex() | |
|
624 | extra = {'rebase_source': ctx.hex()} | |
|
628 | 625 | if extrafn: |
|
629 | 626 | extrafn(ctx, extra) |
|
630 | 627 |
@@ -152,14 +152,6 b' stabilise' | |||
|
152 | 152 | rebasing 11:c13eb81022ca "f" |
|
153 | 153 | $ hg up tip -q |
|
154 | 154 | |
|
155 | check that extra has accumulated from histedit and rebase | |
|
156 | ||
|
157 | $ hg log -T '{extras % "{key}={value}\n"}\n' -r tip | |
|
158 | branch=default | |
|
159 | histedit_source=cacdfd884a9321ec4e1de275ef3949fa953a1f83 | |
|
160 | rebase_source=c13eb81022caa686a369223fe7f926bc4f7db576 | |
|
161 | ||
|
162 | ||
|
163 | 155 | Test dropping of changeset on the top of the stack |
|
164 | 156 | ------------------------------------------------------- |
|
165 | 157 | |
@@ -173,7 +165,7 b' dropped changeset to be hidden.' | |||
|
173 | 165 | $ cd droplast |
|
174 | 166 | $ hg histedit -r '40db8afa467b' --commands - << EOF |
|
175 | 167 | > pick 40db8afa467b 10 c |
|
176 |
> drop |
|
|
168 | > drop b449568bf7fc 11 f | |
|
177 | 169 | > EOF |
|
178 | 170 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
179 | 171 | $ hg log -G |
@@ -221,7 +213,7 b' Check that histedit respect immutability' | |||
|
221 | 213 | $ hg ph -pv '.^' |
|
222 | 214 | phase changed for 2 changesets |
|
223 | 215 | $ hg log -G |
|
224 |
@ 13: |
|
|
216 | @ 13:b449568bf7fc (draft) f | |
|
225 | 217 | | |
|
226 | 218 | o 12:40db8afa467b (public) c |
|
227 | 219 | | |
@@ -243,17 +235,17 b' Prepare further testing' | |||
|
243 | 235 | > done |
|
244 | 236 | $ hg phase --force --secret .~2 |
|
245 | 237 | $ hg log -G |
|
246 |
@ 18: |
|
|
238 | @ 18:ee118ab9fa44 (secret) k | |
|
247 | 239 | | |
|
248 |
o 17: |
|
|
240 | o 17:3a6c53ee7f3d (secret) j | |
|
249 | 241 | | |
|
250 |
o 16: |
|
|
242 | o 16:b605fb7503f2 (secret) i | |
|
251 | 243 | | |
|
252 |
o 15: |
|
|
244 | o 15:7395e1ff83bd (draft) h | |
|
253 | 245 | | |
|
254 |
o 14: |
|
|
246 | o 14:6b70183d2492 (draft) g | |
|
255 | 247 | | |
|
256 |
o 13: |
|
|
248 | o 13:b449568bf7fc (draft) f | |
|
257 | 249 | | |
|
258 | 250 | o 12:40db8afa467b (public) c |
|
259 | 251 | | |
@@ -271,33 +263,33 b' New-commit as draft (default)' | |||
|
271 | 263 | |
|
272 | 264 | $ cp -r base simple-draft |
|
273 | 265 | $ cd simple-draft |
|
274 |
$ hg histedit -r ' |
|
|
275 |
> edit |
|
|
276 |
> pick |
|
|
277 |
> pick |
|
|
278 |
> pick |
|
|
279 |
> pick |
|
|
280 |
> pick |
|
|
266 | $ hg histedit -r 'b449568bf7fc' --commands - << EOF | |
|
267 | > edit b449568bf7fc 11 f | |
|
268 | > pick 6b70183d2492 12 g | |
|
269 | > pick 7395e1ff83bd 13 h | |
|
270 | > pick b605fb7503f2 14 i | |
|
271 | > pick 3a6c53ee7f3d 15 j | |
|
272 | > pick ee118ab9fa44 16 k | |
|
281 | 273 | > EOF |
|
282 | 274 | 0 files updated, 0 files merged, 6 files removed, 0 files unresolved |
|
283 | 275 | adding f |
|
284 |
Editing ( |
|
|
276 | Editing (b449568bf7fc), you may commit or record as needed now. | |
|
285 | 277 | (hg histedit --continue to resume) |
|
286 | 278 | [1] |
|
287 | 279 | $ echo f >> f |
|
288 | 280 | $ hg histedit --continue |
|
289 | 281 | $ hg log -G |
|
290 |
@ 24:129 |
|
|
282 | @ 24:12e89af74238 (secret) k | |
|
291 | 283 | | |
|
292 |
o 23: |
|
|
284 | o 23:636a8687b22e (secret) j | |
|
293 | 285 | | |
|
294 |
o 22: |
|
|
286 | o 22:ccaf0a38653f (secret) i | |
|
295 | 287 | | |
|
296 |
o 21: |
|
|
288 | o 21:11a89d1c2613 (draft) h | |
|
297 | 289 | | |
|
298 |
o 20: |
|
|
290 | o 20:c1dec7ca82ea (draft) g | |
|
299 | 291 | | |
|
300 |
o 19: |
|
|
292 | o 19:087281e68428 (draft) f | |
|
301 | 293 | | |
|
302 | 294 | o 12:40db8afa467b (public) c |
|
303 | 295 | | |
@@ -314,33 +306,33 b' New-commit as draft (default)' | |||
|
314 | 306 | > [phases] |
|
315 | 307 | > new-commit=secret |
|
316 | 308 | > EOF |
|
317 |
$ hg histedit -r ' |
|
|
318 |
> edit |
|
|
319 |
> pick |
|
|
320 |
> pick |
|
|
321 |
> pick |
|
|
322 |
> pick |
|
|
323 |
> pick |
|
|
309 | $ hg histedit -r 'b449568bf7fc' --commands - << EOF | |
|
310 | > edit b449568bf7fc 11 f | |
|
311 | > pick 6b70183d2492 12 g | |
|
312 | > pick 7395e1ff83bd 13 h | |
|
313 | > pick b605fb7503f2 14 i | |
|
314 | > pick 3a6c53ee7f3d 15 j | |
|
315 | > pick ee118ab9fa44 16 k | |
|
324 | 316 | > EOF |
|
325 | 317 | 0 files updated, 0 files merged, 6 files removed, 0 files unresolved |
|
326 | 318 | adding f |
|
327 |
Editing ( |
|
|
319 | Editing (b449568bf7fc), you may commit or record as needed now. | |
|
328 | 320 | (hg histedit --continue to resume) |
|
329 | 321 | [1] |
|
330 | 322 | $ echo f >> f |
|
331 | 323 | $ hg histedit --continue |
|
332 | 324 | $ hg log -G |
|
333 |
@ 24:129 |
|
|
325 | @ 24:12e89af74238 (secret) k | |
|
334 | 326 | | |
|
335 |
o 23: |
|
|
327 | o 23:636a8687b22e (secret) j | |
|
336 | 328 | | |
|
337 |
o 22: |
|
|
329 | o 22:ccaf0a38653f (secret) i | |
|
338 | 330 | | |
|
339 |
o 21: |
|
|
331 | o 21:11a89d1c2613 (draft) h | |
|
340 | 332 | | |
|
341 |
o 20: |
|
|
333 | o 20:c1dec7ca82ea (draft) g | |
|
342 | 334 | | |
|
343 |
o 19: |
|
|
335 | o 19:087281e68428 (draft) f | |
|
344 | 336 | | |
|
345 | 337 | o 12:40db8afa467b (public) c |
|
346 | 338 | | |
@@ -357,27 +349,27 b' It seems more important to present the s' | |||
|
357 | 349 | |
|
358 | 350 | $ cp -r base reorder |
|
359 | 351 | $ cd reorder |
|
360 |
$ hg histedit -r ' |
|
|
361 |
> pick |
|
|
362 |
> pick |
|
|
363 |
> pick |
|
|
364 |
> pick |
|
|
365 |
> pick |
|
|
366 |
> pick |
|
|
352 | $ hg histedit -r 'b449568bf7fc' --commands - << EOF | |
|
353 | > pick b449568bf7fc 11 f | |
|
354 | > pick 3a6c53ee7f3d 15 j | |
|
355 | > pick 6b70183d2492 12 g | |
|
356 | > pick b605fb7503f2 14 i | |
|
357 | > pick 7395e1ff83bd 13 h | |
|
358 | > pick ee118ab9fa44 16 k | |
|
367 | 359 | > EOF |
|
368 | 360 | 0 files updated, 0 files merged, 5 files removed, 0 files unresolved |
|
369 | 361 | $ hg log -G |
|
370 |
@ 23: |
|
|
362 | @ 23:558246857888 (secret) k | |
|
371 | 363 | | |
|
372 |
o 22: |
|
|
364 | o 22:28bd44768535 (secret) h | |
|
373 | 365 | | |
|
374 |
o 21: |
|
|
366 | o 21:d5395202aeb9 (secret) i | |
|
375 | 367 | | |
|
376 |
o 20: |
|
|
368 | o 20:21edda8e341b (secret) g | |
|
377 | 369 | | |
|
378 |
o 19: |
|
|
370 | o 19:5ab64f3a4832 (secret) j | |
|
379 | 371 | | |
|
380 |
o 13: |
|
|
372 | o 13:b449568bf7fc (draft) f | |
|
381 | 373 | | |
|
382 | 374 | o 12:40db8afa467b (public) c |
|
383 | 375 | | |
@@ -399,13 +391,13 b' Note that there is a few reordering in t' | |||
|
399 | 391 | > [phases] |
|
400 | 392 | > new-commit=secret |
|
401 | 393 | > EOF |
|
402 |
$ hg histedit -r ' |
|
|
403 |
> pick |
|
|
404 |
> fold |
|
|
405 |
> pick |
|
|
406 |
> fold |
|
|
407 |
> pick |
|
|
408 |
> fold |
|
|
394 | $ hg histedit -r 'b449568bf7fc' --commands - << EOF | |
|
395 | > pick 7395e1ff83bd 13 h | |
|
396 | > fold b449568bf7fc 11 f | |
|
397 | > pick 6b70183d2492 12 g | |
|
398 | > fold 3a6c53ee7f3d 15 j | |
|
399 | > pick b605fb7503f2 14 i | |
|
400 | > fold ee118ab9fa44 16 k | |
|
409 | 401 | > EOF |
|
410 | 402 | 0 files updated, 0 files merged, 6 files removed, 0 files unresolved |
|
411 | 403 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
@@ -415,29 +407,29 b' Note that there is a few reordering in t' | |||
|
415 | 407 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
416 | 408 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
417 | 409 | $ hg log -G |
|
418 |
@ 27: |
|
|
410 | @ 27:f9daec13fb98 (secret) i | |
|
419 | 411 | | |
|
420 |
o 24: |
|
|
412 | o 24:49807617f46a (secret) g | |
|
421 | 413 | | |
|
422 |
o 21: |
|
|
414 | o 21:050280826e04 (draft) h | |
|
423 | 415 | | |
|
424 | 416 | o 12:40db8afa467b (public) c |
|
425 | 417 | | |
|
426 | 418 | o 0:cb9a9f314b8b (public) a |
|
427 | 419 | |
|
428 | $ hg co 3de6dbab1b62 | |
|
420 | $ hg co 49807617f46a | |
|
429 | 421 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
430 | 422 | $ echo wat >> wat |
|
431 | 423 | $ hg add wat |
|
432 | 424 | $ hg ci -m 'add wat' |
|
433 | 425 | created new head |
|
434 |
$ hg merge |
|
|
426 | $ hg merge f9daec13fb98 | |
|
435 | 427 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
436 | 428 | (branch merge, don't forget to commit) |
|
437 | 429 | $ hg ci -m 'merge' |
|
438 | 430 | $ echo not wat > wat |
|
439 | 431 | $ hg ci -m 'modify wat' |
|
440 |
$ hg histedit |
|
|
432 | $ hg histedit 050280826e04 | |
|
441 | 433 | abort: cannot edit history that contains merges |
|
442 | 434 | [255] |
|
443 | 435 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now