comparison tests/test-inhibit.t @ 3105:f5d472b7e800 mercurial-4.3

test-compat: revert output changes related to temporary amend commit This backed out changeset 06844693bb21 and other related changes.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 20 Oct 2017 19:32:18 +0200
parents ccfcacc5ee7c
children a867d59ea97a
comparison
equal deleted inserted replaced
3104:3dd5a6f83f8b 3105:f5d472b7e800
98 after amend 98 after amend
99 99
100 $ echo babar > cJ 100 $ echo babar > cJ
101 $ hg commit --amend 101 $ hg commit --amend
102 $ hg log -G 102 $ hg log -G
103 @ 8:55c73a90e4b4 add cJ 103 @ 9:55c73a90e4b4 add cJ
104 | 104 |
105 o 6:cf5c4f4554ce add cH 105 o 6:cf5c4f4554ce add cH
106 | 106 |
107 o 5:5419eb264a33 add cG 107 o 5:5419eb264a33 add cG
108 | 108 |
110 | 110 |
111 o 0:54ccbc537fc2 add cA 111 o 0:54ccbc537fc2 add cA
112 112
113 $ hg debugobsinhibit --hidden 18214586bf78 113 $ hg debugobsinhibit --hidden 18214586bf78
114 $ hg log -G 114 $ hg log -G
115 @ 8:55c73a90e4b4 add cJ 115 @ 9:55c73a90e4b4 add cJ
116 | 116 |
117 | o 7:18214586bf78 add cJ 117 | o 7:18214586bf78 add cJ
118 |/ 118 |/
119 o 6:cf5c4f4554ce add cH 119 o 6:cf5c4f4554ce add cH
120 | 120 |
126 126
127 127
128 and no divergence 128 and no divergence
129 129
130 $ hg summary 130 $ hg summary
131 parent: 8:55c73a90e4b4 tip 131 parent: 9:55c73a90e4b4 tip
132 add cJ 132 add cJ
133 branch: default 133 branch: default
134 commit: (clean) 134 commit: (clean)
135 update: 1 new changesets, 2 branch heads (merge) 135 update: 1 new changesets, 2 branch heads (merge)
136 phases: 6 draft 136 phases: 6 draft
144 1 changesets pruned 144 1 changesets pruned
145 $ hg debugobsinhibit --hidden 18214586bf78 145 $ hg debugobsinhibit --hidden 18214586bf78
146 $ wc -m .hg/store/obsinhibit | sed -e 's/^[ \t]*//' 146 $ wc -m .hg/store/obsinhibit | sed -e 's/^[ \t]*//'
147 20 .hg/store/obsinhibit 147 20 .hg/store/obsinhibit
148 $ hg log -G 148 $ hg log -G
149 @ 8:55c73a90e4b4 add cJ 149 @ 9:55c73a90e4b4 add cJ
150 | 150 |
151 | o 7:18214586bf78 add cJ 151 | o 7:18214586bf78 add cJ
152 |/ 152 |/
153 o 6:cf5c4f4554ce add cH 153 o 6:cf5c4f4554ce add cH
154 | 154 |
158 | 158 |
159 o 0:54ccbc537fc2 add cA 159 o 0:54ccbc537fc2 add cA
160 160
161 $ hg phase --public 7 161 $ hg phase --public 7
162 1 new phase-divergent changesets 162 1 new phase-divergent changesets
163 $ hg strip 8 163 $ hg strip 9
164 0 files updated, 0 files merged, 1 files removed, 0 files unresolved 164 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
165 working directory now at cf5c4f4554ce 165 working directory now at cf5c4f4554ce
166 1 changesets pruned 166 1 changesets pruned
167 $ hg log -G 167 $ hg log -G
168 o 7:18214586bf78 add cJ 168 o 7:18214586bf78 add cJ
177 177
178 $ hg debugobsinhibit --hidden 55c73a90e4b4 178 $ hg debugobsinhibit --hidden 55c73a90e4b4
179 $ wc -m .hg/store/obsinhibit | sed -e 's/^[ \t]*//' 179 $ wc -m .hg/store/obsinhibit | sed -e 's/^[ \t]*//'
180 20 .hg/store/obsinhibit 180 20 .hg/store/obsinhibit
181 $ hg log -G 181 $ hg log -G
182 o 8:55c73a90e4b4 add cJ 182 o 9:55c73a90e4b4 add cJ
183 | 183 |
184 | o 7:18214586bf78 add cJ 184 | o 7:18214586bf78 add cJ
185 |/ 185 |/
186 @ 6:cf5c4f4554ce add cH 186 @ 6:cf5c4f4554ce add cH
187 | 187 |
194 Update should inhibit all related unstable commits 194 Update should inhibit all related unstable commits
195 195
196 $ hg update 2 --hidden 196 $ hg update 2 --hidden
197 2 files updated, 0 files merged, 3 files removed, 0 files unresolved 197 2 files updated, 0 files merged, 3 files removed, 0 files unresolved
198 $ hg log -G 198 $ hg log -G
199 o 8:55c73a90e4b4 add cJ 199 o 9:55c73a90e4b4 add cJ
200 | 200 |
201 | o 7:18214586bf78 add cJ 201 | o 7:18214586bf78 add cJ
202 |/ 202 |/
203 o 6:cf5c4f4554ce add cH 203 o 6:cf5c4f4554ce add cH
204 | 204 |
211 | o 1:02bcbc3f6e56 add cB 211 | o 1:02bcbc3f6e56 add cB
212 |/ 212 |/
213 o 0:54ccbc537fc2 add cA 213 o 0:54ccbc537fc2 add cA
214 214
215 215
216 $ hg update 8 216 $ hg update 9
217 4 files updated, 0 files merged, 2 files removed, 0 files unresolved 217 4 files updated, 0 files merged, 2 files removed, 0 files unresolved
218 $ hg log -G 218 $ hg log -G
219 @ 8:55c73a90e4b4 add cJ 219 @ 9:55c73a90e4b4 add cJ
220 | 220 |
221 | o 7:18214586bf78 add cJ 221 | o 7:18214586bf78 add cJ
222 |/ 222 |/
223 o 6:cf5c4f4554ce add cH 223 o 6:cf5c4f4554ce add cH
224 | 224 |
233 o 0:54ccbc537fc2 add cA 233 o 0:54ccbc537fc2 add cA
234 234
235 $ hg strip --hidden 1:: 235 $ hg strip --hidden 1::
236 3 changesets pruned 236 3 changesets pruned
237 $ hg log -G 237 $ hg log -G
238 @ 8:55c73a90e4b4 add cJ 238 @ 9:55c73a90e4b4 add cJ
239 | 239 |
240 | o 7:18214586bf78 add cJ 240 | o 7:18214586bf78 add cJ
241 |/ 241 |/
242 o 6:cf5c4f4554ce add cH 242 o 6:cf5c4f4554ce add cH
243 | 243 |
249 249
250 250
251 Bookmark should inhibit all related unstable commits 251 Bookmark should inhibit all related unstable commits
252 $ hg bookmark -r 2 book1 --hidden 252 $ hg bookmark -r 2 book1 --hidden
253 $ hg log -G 253 $ hg log -G
254 @ 8:55c73a90e4b4 add cJ 254 @ 9:55c73a90e4b4 add cJ
255 | 255 |
256 | o 7:18214586bf78 add cJ 256 | o 7:18214586bf78 add cJ
257 |/ 257 |/
258 o 6:cf5c4f4554ce add cH 258 o 6:cf5c4f4554ce add cH
259 | 259 |
274 $ hg bookmark -r 1 book2 274 $ hg bookmark -r 1 book2
275 $ hg bookmark -D book1 --config experimental.evolution=createmarkers #--config to make sure prune is not registered as a command. 275 $ hg bookmark -D book1 --config experimental.evolution=createmarkers #--config to make sure prune is not registered as a command.
276 bookmark 'book1' deleted 276 bookmark 'book1' deleted
277 1 changesets pruned 277 1 changesets pruned
278 $ hg log -G 278 $ hg log -G
279 @ 8:55c73a90e4b4 add cJ 279 @ 9:55c73a90e4b4 add cJ
280 | 280 |
281 | o 7:18214586bf78 add cJ 281 | o 7:18214586bf78 add cJ
282 |/ 282 |/
283 o 6:cf5c4f4554ce add cH 283 o 6:cf5c4f4554ce add cH
284 | 284 |
292 292
293 $ hg bookmark -D book2 293 $ hg bookmark -D book2
294 bookmark 'book2' deleted 294 bookmark 'book2' deleted
295 1 changesets pruned 295 1 changesets pruned
296 $ hg log -G 296 $ hg log -G
297 @ 8:55c73a90e4b4 add cJ 297 @ 9:55c73a90e4b4 add cJ
298 | 298 |
299 | o 7:18214586bf78 add cJ 299 | o 7:18214586bf78 add cJ
300 |/ 300 |/
301 o 6:cf5c4f4554ce add cH 301 o 6:cf5c4f4554ce add cH
302 | 302 |
395 $ hg update -C 0 395 $ hg update -C 0
396 0 files updated, 0 files merged, 4 files removed, 0 files unresolved 396 0 files updated, 0 files merged, 4 files removed, 0 files unresolved
397 $ mkcommit cK 397 $ mkcommit cK
398 created new head 398 created new head
399 $ mkcommit cL 399 $ mkcommit cL
400 $ hg update -C 8 400 $ hg update -C 9
401 4 files updated, 0 files merged, 2 files removed, 0 files unresolved 401 4 files updated, 0 files merged, 2 files removed, 0 files unresolved
402 $ hg log -G 402 $ hg log -G
403 o 10:53a94305e133 add cL 403 o 11:53a94305e133 add cL
404 | 404 |
405 o 9:ad78ff7d621f add cK 405 o 10:ad78ff7d621f add cK
406 | 406 |
407 | @ 8:55c73a90e4b4 add cJ 407 | @ 9:55c73a90e4b4 add cJ
408 | | 408 | |
409 | | o 7:18214586bf78 add cJ 409 | | o 7:18214586bf78 add cJ
410 | |/ 410 | |/
411 | o 6:cf5c4f4554ce add cH 411 | o 6:cf5c4f4554ce add cH
412 | | 412 | |
414 | | 414 | |
415 | o 4:98065434e5c6 add cE 415 | o 4:98065434e5c6 add cE
416 |/ 416 |/
417 o 0:54ccbc537fc2 add cA 417 o 0:54ccbc537fc2 add cA
418 418
419 $ hg strip --hidden 9: 419 $ hg strip --hidden 10:
420 2 changesets pruned 420 2 changesets pruned
421 $ hg log -G 421 $ hg log -G
422 @ 8:55c73a90e4b4 add cJ 422 @ 9:55c73a90e4b4 add cJ
423 | 423 |
424 | o 7:18214586bf78 add cJ 424 | o 7:18214586bf78 add cJ
425 |/ 425 |/
426 o 6:cf5c4f4554ce add cH 426 o 6:cf5c4f4554ce add cH
427 | 427 |
428 o 5:5419eb264a33 add cG 428 o 5:5419eb264a33 add cG
429 | 429 |
430 o 4:98065434e5c6 add cE 430 o 4:98065434e5c6 add cE
431 | 431 |
432 o 0:54ccbc537fc2 add cA 432 o 0:54ccbc537fc2 add cA
433 433
434 $ hg rebase -s 9 -d 3 434 $ hg rebase -s 10 -d 3
435 abort: hidden revision '9'! 435 abort: hidden revision '3'!
436 (use --hidden to access hidden revisions; pruned) 436 (use --hidden to access hidden revisions; pruned)
437 [255] 437 [255]
438 $ hg rebase -r ad78ff7d621f -r 53a94305e133 -d 2db36d8066ff --config experimental.rebaseskipobsolete=0 438 $ hg rebase -r ad78ff7d621f -r 53a94305e133 -d 2db36d8066ff --config experimental.rebaseskipobsolete=0
439 Warning: accessing hidden changesets 2db36d8066ff for write operation
439 Warning: accessing hidden changesets ad78ff7d621f,53a94305e133 for write operation 440 Warning: accessing hidden changesets ad78ff7d621f,53a94305e133 for write operation
440 Warning: accessing hidden changesets 2db36d8066ff for write operation 441 rebasing 10:ad78ff7d621f "add cK"
441 rebasing 9:ad78ff7d621f "add cK" 442 rebasing 11:53a94305e133 "add cL"
442 rebasing 10:53a94305e133 "add cL" (tip) 443 $ hg log -G
443 $ hg log -G 444 o 13:2f7b7704d714 add cL
444 o 12:2f7b7704d714 add cL 445 |
445 | 446 o 12:fe1634cbe235 add cK
446 o 11:fe1634cbe235 add cK 447 |
447 | 448 | @ 9:55c73a90e4b4 add cJ
448 | @ 8:55c73a90e4b4 add cJ
449 | | 449 | |
450 | | o 7:18214586bf78 add cJ 450 | | o 7:18214586bf78 add cJ
451 | |/ 451 | |/
452 | o 6:cf5c4f4554ce add cH 452 | o 6:cf5c4f4554ce add cH
453 | | 453 | |
474 > EOF 474 > EOF
475 475
476 $ hg strip --hidden 1:: 476 $ hg strip --hidden 1::
477 5 changesets pruned 477 5 changesets pruned
478 $ hg log -G 478 $ hg log -G
479 @ 8:55c73a90e4b4 add cJ 479 @ 9:55c73a90e4b4 add cJ
480 | 480 |
481 | o 7:18214586bf78 add cJ 481 | o 7:18214586bf78 add cJ
482 |/ 482 |/
483 o 6:cf5c4f4554ce add cH 483 o 6:cf5c4f4554ce add cH
484 | 484 |
492 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 492 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
493 $ mkcommit cL 493 $ mkcommit cL
494 $ mkcommit cM 494 $ mkcommit cM
495 $ mkcommit cN 495 $ mkcommit cN
496 $ hg log -G 496 $ hg log -G
497 @ 15:a438c045eb37 add cN 497 @ 16:a438c045eb37 add cN
498 | 498 |
499 o 14:2d66e189f5b5 add cM 499 o 15:2d66e189f5b5 add cM
500 | 500 |
501 o 13:d66ccb8c5871 add cL 501 o 14:d66ccb8c5871 add cL
502 | 502 |
503 | o 8:55c73a90e4b4 add cJ 503 | o 9:55c73a90e4b4 add cJ
504 | | 504 | |
505 o | 7:18214586bf78 add cJ 505 o | 7:18214586bf78 add cJ
506 |/ 506 |/
507 o 6:cf5c4f4554ce add cH 507 o 6:cf5c4f4554ce add cH
508 | 508 |
510 | 510 |
511 o 4:98065434e5c6 add cE 511 o 4:98065434e5c6 add cE
512 | 512 |
513 o 0:54ccbc537fc2 add cA 513 o 0:54ccbc537fc2 add cA
514 514
515 $ hg up 14 515 $ hg up 15
516 0 files updated, 0 files merged, 1 files removed, 0 files unresolved 516 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
517 $ echo "mmm" >> cM 517 $ echo "mmm" >> cM
518 $ hg amend 518 $ hg amend
519 $ hg log -G 519 $ hg log -G
520 @ 16:210589181b14 add cM 520 @ 18:210589181b14 add cM
521 | 521 |
522 | o 15:a438c045eb37 add cN 522 | o 16:a438c045eb37 add cN
523 | | 523 | |
524 | o 14:2d66e189f5b5 add cM 524 | o 15:2d66e189f5b5 add cM
525 |/ 525 |/
526 o 13:d66ccb8c5871 add cL 526 o 14:d66ccb8c5871 add cL
527 | 527 |
528 | o 8:55c73a90e4b4 add cJ 528 | o 9:55c73a90e4b4 add cJ
529 | | 529 | |
530 o | 7:18214586bf78 add cJ 530 o | 7:18214586bf78 add cJ
531 |/ 531 |/
532 o 6:cf5c4f4554ce add cH 532 o 6:cf5c4f4554ce add cH
533 | 533 |
537 | 537 |
538 o 0:54ccbc537fc2 add cA 538 o 0:54ccbc537fc2 add cA
539 539
540 Check that rebasing a commit twice makes the commit visible again 540 Check that rebasing a commit twice makes the commit visible again
541 541
542 $ hg rebase -d 16 -r 15 --keep 542 $ hg rebase -d 18 -r 16 --keep
543 rebasing 15:a438c045eb37 "add cN" 543 rebasing 16:a438c045eb37 "add cN"
544 $ hg log -r 13:: -G 544 $ hg log -r 14:: -G
545 o 17:104eed5354c7 add cN 545 o 19:104eed5354c7 add cN
546 | 546 |
547 @ 16:210589181b14 add cM 547 @ 18:210589181b14 add cM
548 | 548 |
549 | o 15:a438c045eb37 add cN 549 | o 16:a438c045eb37 add cN
550 | | 550 | |
551 | o 14:2d66e189f5b5 add cM 551 | o 15:2d66e189f5b5 add cM
552 |/ 552 |/
553 o 13:d66ccb8c5871 add cL 553 o 14:d66ccb8c5871 add cL
554 | 554 |
555 ~ 555 ~
556 $ hg strip -r 210589181b14 556 $ hg strip -r 210589181b14
557 0 files updated, 0 files merged, 1 files removed, 0 files unresolved 557 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
558 working directory now at d66ccb8c5871 558 working directory now at d66ccb8c5871
559 2 changesets pruned 559 2 changesets pruned
560 560
561 Using a hash prefix solely made of digits should work 561 Using a hash prefix solely made of digits should work
562 $ hg update 210589181 562 $ hg update 210589181
563 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 563 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
564 $ hg rebase -d 16 -r 15 --keep 564 $ hg rebase -d 18 -r 16 --keep
565 rebasing 15:a438c045eb37 "add cN" 565 rebasing 16:a438c045eb37 "add cN"
566 $ hg log -r 13:: -G 566 $ hg log -r 14:: -G
567 o 17:104eed5354c7 add cN 567 o 19:104eed5354c7 add cN
568 | 568 |
569 @ 16:210589181b14 add cM 569 @ 18:210589181b14 add cM
570 | 570 |
571 | o 15:a438c045eb37 add cN 571 | o 16:a438c045eb37 add cN
572 | | 572 | |
573 | o 14:2d66e189f5b5 add cM 573 | o 15:2d66e189f5b5 add cM
574 |/ 574 |/
575 o 13:d66ccb8c5871 add cL 575 o 14:d66ccb8c5871 add cL
576 | 576 |
577 ~ 577 ~
578 578
579 Test prunestrip 579 Test prunestrip
580 580
581 $ hg book foo -r 104eed5354c7 581 $ hg book foo -r 104eed5354c7
582 $ hg strip -r 210589181b14 582 $ hg strip -r 210589181b14
583 0 files updated, 0 files merged, 1 files removed, 0 files unresolved 583 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
584 working directory now at d66ccb8c5871 584 working directory now at d66ccb8c5871
585 2 changesets pruned 585 2 changesets pruned
586 $ hg log -r 13:: -G -T '{rev}:{node|short} {desc|firstline} {bookmarks}\n' 586 $ hg log -r 14:: -G -T '{rev}:{node|short} {desc|firstline} {bookmarks}\n'
587 o 15:a438c045eb37 add cN 587 o 16:a438c045eb37 add cN
588 | 588 |
589 o 14:2d66e189f5b5 add cM 589 o 15:2d66e189f5b5 add cM
590 | 590 |
591 @ 13:d66ccb8c5871 add cL foo 591 @ 14:d66ccb8c5871 add cL foo
592 | 592 |
593 ~ 593 ~
594 594
595 Check that --hidden used with inhibit does not hide every obsolete commit 595 Check that --hidden used with inhibit does not hide every obsolete commit
596 We show the log before and after a log -G --hidden, they should be the same 596 We show the log before and after a log -G --hidden, they should be the same
597 $ hg log -G 597 $ hg log -G
598 o 15:a438c045eb37 add cN 598 o 16:a438c045eb37 add cN
599 | 599 |
600 o 14:2d66e189f5b5 add cM 600 o 15:2d66e189f5b5 add cM
601 | 601 |
602 @ 13:d66ccb8c5871 add cL 602 @ 14:d66ccb8c5871 add cL
603 | 603 |
604 | o 8:55c73a90e4b4 add cJ 604 | o 9:55c73a90e4b4 add cJ
605 | | 605 | |
606 o | 7:18214586bf78 add cJ 606 o | 7:18214586bf78 add cJ
607 |/ 607 |/
608 o 6:cf5c4f4554ce add cH 608 o 6:cf5c4f4554ce add cH
609 | 609 |
612 o 4:98065434e5c6 add cE 612 o 4:98065434e5c6 add cE
613 | 613 |
614 o 0:54ccbc537fc2 add cA 614 o 0:54ccbc537fc2 add cA
615 615
616 $ hg log -G --hidden 616 $ hg log -G --hidden
617 x 17:104eed5354c7 add cN 617 x 19:104eed5354c7 add cN
618 | 618 |
619 x 16:210589181b14 add cM 619 x 18:210589181b14 add cM
620 | 620 |
621 | o 15:a438c045eb37 add cN 621 | x 17:b3c3274523f9 temporary amend commit for 2d66e189f5b5
622 | | 622 | |
623 | o 14:2d66e189f5b5 add cM 623 | | o 16:a438c045eb37 add cN
624 |/ 624 | |/
625 @ 13:d66ccb8c5871 add cL 625 | o 15:2d66e189f5b5 add cM
626 | 626 |/
627 | x 12:2f7b7704d714 add cL 627 @ 14:d66ccb8c5871 add cL
628 | | 628 |
629 | x 11:fe1634cbe235 add cK 629 | x 13:2f7b7704d714 add cL
630 | | 630 | |
631 | | x 10:53a94305e133 add cL 631 | x 12:fe1634cbe235 add cK
632 | |
633 | | x 11:53a94305e133 add cL
632 | | | 634 | | |
633 | | x 9:ad78ff7d621f add cK 635 | | x 10:ad78ff7d621f add cK
634 | | | 636 | | |
635 | | | o 8:55c73a90e4b4 add cJ 637 | | | o 9:55c73a90e4b4 add cJ
638 | | | |
639 +-------x 8:e84f73d9ad36 temporary amend commit for 18214586bf78
636 | | | | 640 | | | |
637 o-----+ 7:18214586bf78 add cJ 641 o-----+ 7:18214586bf78 add cJ
638 / / / 642 / / /
639 | | o 6:cf5c4f4554ce add cH 643 | | o 6:cf5c4f4554ce add cH
640 | | | 644 | | |
650 |/ 654 |/
651 o 0:54ccbc537fc2 add cA 655 o 0:54ccbc537fc2 add cA
652 656
653 657
654 $ hg log -G 658 $ hg log -G
655 o 15:a438c045eb37 add cN 659 o 16:a438c045eb37 add cN
656 | 660 |
657 o 14:2d66e189f5b5 add cM 661 o 15:2d66e189f5b5 add cM
658 | 662 |
659 @ 13:d66ccb8c5871 add cL 663 @ 14:d66ccb8c5871 add cL
660 | 664 |
661 | o 8:55c73a90e4b4 add cJ 665 | o 9:55c73a90e4b4 add cJ
662 | | 666 | |
663 o | 7:18214586bf78 add cJ 667 o | 7:18214586bf78 add cJ
664 |/ 668 |/
665 o 6:cf5c4f4554ce add cH 669 o 6:cf5c4f4554ce add cH
666 | 670 |
694 > inhibit=! 698 > inhibit=!
695 > [experimental] 699 > [experimental]
696 > evolution=createmarkers 700 > evolution=createmarkers
697 > EOF 701 > EOF
698 702
699 $ hg up 14 703 $ hg up 15
700 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 704 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
701 working directory parent is obsolete! (2d66e189f5b5) 705 working directory parent is obsolete! (2d66e189f5b5)
702 $ cat >> $HGRCPATH <<EOF 706 $ cat >> $HGRCPATH <<EOF
703 > [experimental] 707 > [experimental]
704 > evolution=all 708 > evolution=all
705 > EOF 709 > EOF
706 $ echo "CM" > cM 710 $ echo "CM" > cM
707 $ hg amend 711 $ hg amend
708 $ hg log -G 712 $ hg log -G
709 @ 18:721c3c279519 add cM 713 @ 21:721c3c279519 add cM
710 | 714 |
711 | o 15:a438c045eb37 add cN 715 | o 16:a438c045eb37 add cN
712 | | 716 | |
713 | x 14:2d66e189f5b5 add cM 717 | x 15:2d66e189f5b5 add cM
714 |/ 718 |/
715 o 13:d66ccb8c5871 add cL 719 o 14:d66ccb8c5871 add cL
716 | 720 |
717 o 7:18214586bf78 add cJ 721 o 7:18214586bf78 add cJ
718 | 722 |
719 o 6:cf5c4f4554ce add cH 723 o 6:cf5c4f4554ce add cH
720 | 724 |
737 Check that the behavior of rebase with obsolescence markers is maintained 741 Check that the behavior of rebase with obsolescence markers is maintained
738 despite inhibit 742 despite inhibit
739 743
740 $ hg up a438c045eb37 744 $ hg up a438c045eb37
741 2 files updated, 0 files merged, 0 files removed, 0 files unresolved 745 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
742 $ hg rebase -r 14:: -d 18 --config experimental.rebaseskipobsolete=True 746 $ hg rebase -r 15:: -d 21 --config experimental.rebaseskipobsolete=True
743 note: not rebasing 14:2d66e189f5b5 "add cM", already in destination as 18:721c3c279519 "add cM" (tip) 747 note: not rebasing 15:2d66e189f5b5 "add cM", already in destination as 21:721c3c279519 "add cM"
744 rebasing 15:a438c045eb37 "add cN" 748 rebasing 16:a438c045eb37 "add cN"
745 $ hg up -q 2d66e189f5b5 # To inhibit it as the rest of test depends on it 749 $ hg up -q 2d66e189f5b5 # To inhibit it as the rest of test depends on it
746 $ hg up -q 18 750 $ hg up -q 21
747 751
748 Directaccess should load after some extensions precised in the conf 752 Directaccess should load after some extensions precised in the conf
749 With no extension specified: 753 With no extension specified:
750 754
751 $ cat >$TESTTMP/test_extension.py << EOF 755 $ cat >$TESTTMP/test_extension.py << EOF
811 searching for changes 815 searching for changes
812 adding changesets 816 adding changesets
813 adding manifests 817 adding manifests
814 adding file changes 818 adding file changes
815 added 1 changesets with 1 changes to 1 files (+1 heads) 819 added 1 changesets with 1 changes to 1 files (+1 heads)
816 1 new obsolescence markers 820 2 new obsolescence markers
817 821
818 Create a stack (obsolete with successor in dest) -> (not obsolete) and rebase 822 Create a stack (obsolete with successor in dest) -> (not obsolete) and rebase
819 it. We expect to not see the stack at the end of the rebase. 823 it. We expect to not see the stack at the end of the rebase.
820 $ hg log -G -r "003a4735afde::" 824 $ hg log -G -r "25::"
821 x 20:003a4735afde add pk 825 @ 25:71eb4f100663 add pk
822 | 826 |
823 ~ 827 ~
824 $ hg log -G 828 $ hg up -C 22
825 @ 21:71eb4f100663 add pk
826 |
827 | o 19:46cb6daad392 add cN
828 |/
829 o 18:721c3c279519 add cM
830 |
831 | o 16:210589181b14 add cM
832 |/
833 | o 14:2d66e189f5b5 add cM
834 |/
835 o 13:d66ccb8c5871 add cL
836 |
837 | o 8:55c73a90e4b4 add cJ
838 | |
839 o | 7:18214586bf78 add cJ
840 |/
841 o 6:cf5c4f4554ce add cH
842 |
843 o 5:5419eb264a33 add cG
844 |
845 o 4:98065434e5c6 add cE
846 |
847 o 0:54ccbc537fc2 add cA
848
849 $ hg up -C 46cb6daad392
850 1 files updated, 0 files merged, 1 files removed, 0 files unresolved 829 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
851 $ mkcommit Dk 830 $ mkcommit Dk
852 $ hg prune 46cb6daad392 -s 71eb4f100663 831 $ hg prune 22 -s 25
853 1 changesets pruned 832 1 changesets pruned
854 $ hg rebase -s 46cb6daad392 -d 71eb4f100663 --config experimental.rebaseskipobsolete=True 833 $ hg rebase -s 22 -d 25 --config experimental.rebaseskipobsolete=True
855 note: not rebasing 19:46cb6daad392 "add cN", already in destination as 21:71eb4f100663 "add pk" 834 note: not rebasing 22:46cb6daad392 "add cN", already in destination as 25:71eb4f100663 "add pk"
856 rebasing 22:7ad60e760c7b "add Dk" (tip) 835 rebasing 26:7ad60e760c7b "add Dk" (tip)
857 $ hg log -G -r "71eb4f100663::" 836 $ hg log -G -r "25::"
858 @ 23:1192fa9fbc68 add Dk 837 @ 27:1192fa9fbc68 add Dk
859 | 838 |
860 o 21:71eb4f100663 add pk 839 o 25:71eb4f100663 add pk
861 | 840 |
862 ~ 841 ~
863 842
864 Create a stack (obsolete with succ in dest) -> (not obsolete) -> (not obsolete). 843 Create a stack (obsolete with succ in dest) -> (not obsolete) -> (not obsolete).
865 Rebase the first two revs of the stack onto dest, we expect to see one new 844 Rebase the first two revs of the stack onto dest, we expect to see one new
866 revision on the destination and everything visible. 845 revision on the destination and everything visible.
867 $ hg up 71eb4f100663 846 $ hg up 25
868 0 files updated, 0 files merged, 1 files removed, 0 files unresolved 847 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
869 $ mkcommit Dl 848 $ mkcommit Dl
870 created new head 849 created new head
871 $ mkcommit Dp 850 $ mkcommit Dp
872 $ mkcommit Do 851 $ mkcommit Do
873 $ hg log -G -r "71eb4f100663::" 852 $ hg log -G -r "25::"
874 @ 26:b517facce1ef add Do 853 @ 30:b517facce1ef add Do
875 | 854 |
876 o 25:c5a47ab27c2e add Dp 855 o 29:c5a47ab27c2e add Dp
877 | 856 |
878 o 24:8c1c2edbaf1b add Dl 857 o 28:8c1c2edbaf1b add Dl
879 | 858 |
880 | o 23:1192fa9fbc68 add Dk 859 | o 27:1192fa9fbc68 add Dk
881 |/ 860 |/
882 o 21:71eb4f100663 add pk 861 o 25:71eb4f100663 add pk
883 | 862 |
884 ~ 863 ~
885 $ hg prune 8c1c2edbaf1b -s 1192fa9fbc68 864 $ hg prune 28 -s 27
886 1 changesets pruned 865 1 changesets pruned
887 $ hg up 71eb4f100663 866 $ hg up 25
888 0 files updated, 0 files merged, 3 files removed, 0 files unresolved 867 0 files updated, 0 files merged, 3 files removed, 0 files unresolved
889 $ hg rebase -r "8c1c2edbaf1b + c5a47ab27c2e" --keep -d 1192fa9fbc68 --config experimental.rebaseskipobsolete=True 868 $ hg rebase -r "28 + 29" --keep -d 27 --config experimental.rebaseskipobsolete=True
890 note: not rebasing 24:8c1c2edbaf1b "add Dl", already in destination as 23:1192fa9fbc68 "add Dk" 869 note: not rebasing 28:8c1c2edbaf1b "add Dl", already in destination as 27:1192fa9fbc68 "add Dk"
891 rebasing 25:c5a47ab27c2e "add Dp" 870 rebasing 29:c5a47ab27c2e "add Dp"
892 $ hg log -G -r "71eb4f100663::" 871 $ hg log -G -r "25::"
893 o 27:7d8affb1f604 add Dp 872 o 31:7d8affb1f604 add Dp
894 | 873 |
895 | o 26:b517facce1ef add Do 874 | o 30:b517facce1ef add Do
896 | | 875 | |
897 | o 25:c5a47ab27c2e add Dp 876 | o 29:c5a47ab27c2e add Dp
898 | | 877 | |
899 | o 24:8c1c2edbaf1b add Dl 878 | o 28:8c1c2edbaf1b add Dl
900 | | 879 | |
901 o | 23:1192fa9fbc68 add Dk 880 o | 27:1192fa9fbc68 add Dk
902 |/ 881 |/
903 @ 21:71eb4f100663 add pk 882 @ 25:71eb4f100663 add pk
904 | 883 |
905 ~ 884 ~
906 885
907 Rebase the same stack in full on the destination, we expect it to disappear 886 Rebase the same stack in full on the destination, we expect it to disappear
908 and only see the top revision added to destination. We don\'t expect 29 to be 887 and only see the top revision added to destination. We don\'t expect 29 to be
909 skipped as we used --keep before. 888 skipped as we used --keep before.
910 $ hg rebase -s 8c1c2edbaf1b -d 1192fa9fbc68 --config experimental.rebaseskipobsolete=True 889 $ hg rebase -s 28 -d 27 --config experimental.rebaseskipobsolete=True
911 note: not rebasing 24:8c1c2edbaf1b "add Dl", already in destination as 23:1192fa9fbc68 "add Dk" 890 note: not rebasing 28:8c1c2edbaf1b "add Dl", already in destination as 27:1192fa9fbc68 "add Dk"
912 rebasing 25:c5a47ab27c2e "add Dp" 891 rebasing 29:c5a47ab27c2e "add Dp"
913 rebasing 26:b517facce1ef "add Do" 892 rebasing 30:b517facce1ef "add Do"
914 $ hg log -G -r "71eb4f100663::" 893 $ hg log -G -r "25::"
915 o 28:1d43fff9e26f add Do 894 o 32:1d43fff9e26f add Do
916 | 895 |
917 o 27:7d8affb1f604 add Dp 896 o 31:7d8affb1f604 add Dp
918 | 897 |
919 o 23:1192fa9fbc68 add Dk 898 o 27:1192fa9fbc68 add Dk
920 | 899 |
921 @ 21:71eb4f100663 add pk 900 @ 25:71eb4f100663 add pk
922 | 901 |
923 ~ 902 ~
924 903
925 Pulling from a inhibit repo to a non-inhibit repo should work 904 Pulling from a inhibit repo to a non-inhibit repo should work
926 905