comparison tests/test-obsolete.t @ 4903:86b3efd4303e stable

test-output: reinstalled test change for 5.2 This effectively reinstall: * 8345b852cd4f * e804d5a7c193 * 62b60fc1983d * 2d85de79ead8 This mean backing out the following backout changeset: * 2eab4363fc62 * c1cc5b1f813a * 015cdd3fa469 * 3ba1c9dbf462
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 23 Oct 2019 01:07:58 +0200
parents 015cdd3fa469
children f3e39a354378 900668a93629
comparison
equal deleted inserted replaced
4901:ce163aaeba37 4903:86b3efd4303e
31 $ getid 2 31 $ getid 2
32 4538525df7e2b9f09423636c61ef63a4cb872a2d 32 4538525df7e2b9f09423636c61ef63a4cb872a2d
33 $ getid 3 33 $ getid 3
34 0d3f46688ccc6e756c7e96cf64c391c411309597 34 0d3f46688ccc6e756c7e96cf64c391c411309597
35 $ hg debugobsolete 4538525df7e2b9f09423636c61ef63a4cb872a2d 0d3f46688ccc6e756c7e96cf64c391c411309597 35 $ hg debugobsolete 4538525df7e2b9f09423636c61ef63a4cb872a2d 0d3f46688ccc6e756c7e96cf64c391c411309597
36 1 new obsolescence markers
36 obsoleted 1 changesets 37 obsoleted 1 changesets
37 $ hg debugobsolete 38 $ hg debugobsolete
38 4538525df7e2b9f09423636c61ef63a4cb872a2d 0d3f46688ccc6e756c7e96cf64c391c411309597 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} 39 4538525df7e2b9f09423636c61ef63a4cb872a2d 0d3f46688ccc6e756c7e96cf64c391c411309597 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
39 40
40 41
95 test obsolete changeset with non-obsolete descendant 96 test obsolete changeset with non-obsolete descendant
96 $ hg up 1 -q 97 $ hg up 1 -q
97 $ mkcommit "obsol_c'" # 4 (on 1) 98 $ mkcommit "obsol_c'" # 4 (on 1)
98 created new head 99 created new head
99 $ hg debugobsolete `getid 3` `getid 4` 100 $ hg debugobsolete `getid 3` `getid 4`
101 1 new obsolescence markers
100 obsoleted 1 changesets 102 obsoleted 1 changesets
101 $ qlog 103 $ qlog
102 4 104 4
103 - 725c380fe99b 105 - 725c380fe99b
104 1 106 1
213 working directory parent is obsolete! (0d3f46688ccc) 215 working directory parent is obsolete! (0d3f46688ccc)
214 $ mkcommit obsol_d # 6 216 $ mkcommit obsol_d # 6
215 1 new orphan changesets 217 1 new orphan changesets
216 created new head 218 created new head
217 $ hg debugobsolete `getid 5` `getid 6` 219 $ hg debugobsolete `getid 5` `getid 6`
220 1 new obsolescence markers
218 obsoleted 1 changesets 221 obsoleted 1 changesets
219 $ qlog 222 $ qlog
220 6 223 6
221 - 95de7fc6918d 224 - 95de7fc6918d
222 4 225 4
272 working directory parent is obsolete! (0d3f46688ccc) 275 working directory parent is obsolete! (0d3f46688ccc)
273 $ mkcommit "obsol_d'" # 7 276 $ mkcommit "obsol_d'" # 7
274 1 new orphan changesets 277 1 new orphan changesets
275 created new head 278 created new head
276 $ hg debugobsolete `getid 6` `getid 7` 279 $ hg debugobsolete `getid 6` `getid 7`
280 1 new obsolescence markers
277 obsoleted 1 changesets 281 obsoleted 1 changesets
278 $ hg pull -R ../other-new . 282 $ hg pull -R ../other-new .
279 pulling from . 283 pulling from .
280 searching for changes 284 searching for changes
281 adding changesets 285 adding changesets
363 working directory parent is obsolete! (0d3f46688ccc) 367 working directory parent is obsolete! (0d3f46688ccc)
364 $ mkcommit "obsol_d''" 368 $ mkcommit "obsol_d''"
365 1 new orphan changesets 369 1 new orphan changesets
366 created new head 370 created new head
367 $ hg debugobsolete `getid 7` `getid 8` 371 $ hg debugobsolete `getid 7` `getid 8`
372 1 new obsolescence markers
368 obsoleted 1 changesets 373 obsoleted 1 changesets
369 $ cd ../other-new 374 $ cd ../other-new
370 $ hg up -q 3 375 $ hg up -q 3
371 $ hg pull ../local/ 376 $ hg pull ../local/
372 pulling from ../local/ 377 pulling from ../local/
426 $ mkcommit toto # 9 431 $ mkcommit toto # 9
427 created new head 432 created new head
428 $ hg id -n 433 $ hg id -n
429 9 434 9
430 $ hg debugobsolete `getid 0` `getid 9` 435 $ hg debugobsolete `getid 0` `getid 9`
436 1 new obsolescence markers
431 1 new phase-divergent changesets 437 1 new phase-divergent changesets
432 83b5778897ad try to obsolete immutable changeset 1f0dee641bb7 438 83b5778897ad try to obsolete immutable changeset 1f0dee641bb7
433 # at core level the warning is not issued 439 # at core level the warning is not issued
434 # this is now a big issue now that we have phase divergence warning 440 # this is now a big issue now that we have phase divergence warning
435 $ qlog -r 'obsolete()' 441 $ qlog -r 'obsolete()'
450 - 7c3bad9141dc 456 - 7c3bad9141dc
451 0 457 0
452 - 1f0dee641bb7 458 - 1f0dee641bb7
453 459
454 $ hg debugobsolete `getid 9` #kill 460 $ hg debugobsolete `getid 9` #kill
461 1 new obsolescence markers
455 obsoleted 1 changesets 462 obsoleted 1 changesets
456 $ hg up null -q # to be not based on 9 anymore 463 $ hg up null -q # to be not based on 9 anymore
457 $ qlog 464 $ qlog
458 8 465 8
459 - 159dfc9fa5d3 466 - 159dfc9fa5d3
560 2 new content-divergent changesets 567 2 new content-divergent changesets
561 $ hg up -q 10 568 $ hg up -q 10
562 $ mkcommit "obsol_d'''" 569 $ mkcommit "obsol_d'''"
563 created new head 570 created new head
564 $ hg debugobsolete `getid 11` `getid 12` 571 $ hg debugobsolete `getid 11` `getid 12`
572 1 new obsolescence markers
565 obsoleted 1 changesets 573 obsoleted 1 changesets
566 $ hg push ../other-new --traceback 574 $ hg push ../other-new --traceback
567 pushing to ../other-new 575 pushing to ../other-new
568 searching for changes 576 searching for changes
569 adding changesets 577 adding changesets
686 commit: (clean) 694 commit: (clean)
687 update: (2|9|11) new changesets, (3|9|10) branch heads \(merge\) (re) 695 update: (2|9|11) new changesets, (3|9|10) branch heads \(merge\) (re)
688 phases: 3 draft 696 phases: 3 draft
689 phase-divergent: 1 changesets 697 phase-divergent: 1 changesets
690 $ hg debugobsolete `getid a7a6f2b5d8a5` `getid 50f11e5e3a63` 698 $ hg debugobsolete `getid a7a6f2b5d8a5` `getid 50f11e5e3a63`
699 1 new obsolescence markers
691 2 new content-divergent changesets 700 2 new content-divergent changesets
692 $ hg log -r 'contentdivergent()' 701 $ hg log -r 'contentdivergent()'
693 changeset: 12:6db5e282cb91 702 changeset: 12:6db5e282cb91
694 parent: 10:2033b4e49474 703 parent: 10:2033b4e49474
695 user: test 704 user: test