Mercurial > evolve
comparison tests/test-evolve-orphan-merge.t @ 5097:f0c18ad24273 stable
tests: allow an empty merge commit to have tests pass without too many changes
Not the greatest fix, but this allows us to have the same test case for all
versions of Mercurial.
Hash of 29 changes because instead of both parents only one is set in hg 5.3.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 27 Jan 2020 14:55:35 +0700 |
parents | b6c819facbe8 |
children | 7fa4bb23a78a |
comparison
equal
deleted
inserted
replaced
5096:6742ce189373 | 5097:f0c18ad24273 |
---|---|
527 merge them again. After getting their work done, they may want to get rid of | 527 merge them again. After getting their work done, they may want to get rid of |
528 that branch and they prune all their changeset, which will result in this | 528 that branch and they prune all their changeset, which will result in this |
529 case where merge commit becomes orphan with its ancestors pruned up until a | 529 case where merge commit becomes orphan with its ancestors pruned up until a |
530 point where the other parent of merge is the first non-pruned ancestor. | 530 point where the other parent of merge is the first non-pruned ancestor. |
531 | 531 |
532 $ hg evolve -r . | 532 Note: allowing an empty commit here to have the same output on all hg versions. |
533 In newer versions or Mercurial this command would not create a new commit. | |
534 hg <= 5.2 (32d11a23c9cf) | |
535 | |
536 $ hg evolve -r . --config ui.allowemptycommit=true | |
533 move:[28] merged l and x | 537 move:[28] merged l and x |
534 atop:[0] added hgignore | 538 atop:[0] added hgignore |
535 working directory is now at b61ba77b924a | 539 working directory is now at * (glob) |
536 | 540 |
537 $ hg glog | 541 $ hg glog |
538 @ 29:b61ba77b924a merged l and x | 542 @ 29:* merged l and x (glob) |
539 | () draft | 543 | () draft |
540 o 0:8fa14d15e168 added hgignore | 544 o 0:8fa14d15e168 added hgignore |
541 () draft | 545 () draft |
542 | 546 |
543 7) When one parent is pruned without successor and has no parent | 547 7) When one parent is pruned without successor and has no parent |