Mercurial > evolve
diff tests/test-evolve-phase-divergence.t @ 3818:f8677cb11dcb mercurial-4.3
test-compat: merge mercurial-4.4 into mercurial-4.3
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 08 Jun 2018 22:52:53 +0530 |
parents | e5ba6531503e |
children | 537fd9a86c06 |
line wrap: on
line diff
--- a/tests/test-evolve-phase-divergence.t Fri Jun 08 22:52:52 2018 +0530 +++ b/tests/test-evolve-phase-divergence.t Fri Jun 08 22:52:53 2018 +0530 @@ -80,7 +80,6 @@ adding manifests adding file changes added 1 changesets with 1 changes to 1 files - new changesets 4d1169d82e47 (run 'hg update' to get a working copy) $ hg glog @@ -114,7 +113,7 @@ pulling from ../public searching for changes no changes found - 1 new phase-divergent changesets + 1 new bumped changesets $ hg glog @ 2:98bb3a6cfe1a tweak a @@ -129,7 +128,7 @@ $ hg evolve --list 98bb3a6cfe1a: tweak a - phase-divergent: 4d1169d82e47 (immutable precursor) + bumped: 4d1169d82e47 (immutable precursor) @@ -152,7 +151,7 @@ @ 98bb3a6cfe1a (2) tweak a | o 4d1169d82e47 (1) modify a - rewritten(description) as 98bb3a6cfe1a using amend by test (Thu Jan 01 00:00:00 1970 +0000) + rewritten(description) as 98bb3a6cfe1a by test (Thu Jan 01 00:00:00 1970 +0000) Solving the phase divergence using evolve command -------------------------------------------------- @@ -184,7 +183,7 @@ hg rebase --rev 98bb3a6cfe1a --dest d3873e73d99e; hg update 4d1169d82e47; hg revert --all --rev 98bb3a6cfe1a; - hg commit --msg "phase-divergent update to 98bb3a6cfe1a" + hg commit --msg "bumped update to 98bb3a6cfe1a" XXX: evolve should have mentioned that draft commit is just obsoleted in favour of public one. From the message it looks like a new commit is created. @@ -259,7 +258,6 @@ adding manifests adding file changes added 1 changesets with 1 changes to 1 files - new changesets aa071e5554e3 (run 'hg update' to get a working copy) $ hg push ../public @@ -282,10 +280,10 @@ pulling from ../public searching for changes no changes found - 1 new phase-divergent changesets + 1 new bumped changesets $ hg glog - @ 4:d47f2b37ed82 added bar to foo + @ 5:d47f2b37ed82 added bar to foo | (bm) draft | o 3:aa071e5554e3 added foo to foo |/ () public @@ -304,24 +302,24 @@ test I have to go through code base to understand what will be the behavior $ hg evolve --phase-divergent - recreate:[4] added bar to foo + recreate:[5] added bar to foo atop:[3] added foo to foo computing new diff - committed as 3d62500c673d - working directory is now at 3d62500c673d + committed as bdf645eb43bb + working directory is now at bdf645eb43bb $ hg exp # HG changeset patch # User test # Date 0 0 # Thu Jan 01 00:00:00 1970 +0000 - # Node ID 3d62500c673dd1c88bb09a73e86d0210aed6fcb6 + # Node ID bdf645eb43bb0c9f180cd17d109bb359ce1571b2 # Parent aa071e5554e36080a36cfd24accd5a71e3320f1e - phase-divergent update to aa071e5554e3: + bumped update to aa071e5554e3: added bar to foo - diff -r aa071e5554e3 -r 3d62500c673d foo + diff -r aa071e5554e3 -r bdf645eb43bb foo --- a/foo Thu Jan 01 00:00:00 1970 +0000 +++ b/foo Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +1,2 @@ @@ -332,7 +330,7 @@ the commit message $ hg glog - @ 5:3d62500c673d phase-divergent update to aa071e5554e3: + @ 6:bdf645eb43bb bumped update to aa071e5554e3: | (bm) draft o 3:aa071e5554e3 added foo to foo | () public @@ -342,13 +340,13 @@ () public $ hg obslog -r . --all - @ 3d62500c673d (5) phase-divergent update to aa071e5554e3: + @ bdf645eb43bb (6) bumped update to aa071e5554e3: | - x d47f2b37ed82 (4) added bar to foo - | rewritten(description, parent, content) as 3d62500c673d using evolve by test (Thu Jan 01 00:00:00 1970 +0000) + x d47f2b37ed82 (5) added bar to foo + | rewritten(description, parent, content) as bdf645eb43bb by test (Thu Jan 01 00:00:00 1970 +0000) | o aa071e5554e3 (3) added foo to foo - rewritten(description, content) as d47f2b37ed82 using amend by test (Thu Jan 01 00:00:00 1970 +0000) + rewritten(description, content) as d47f2b37ed82 by test (Thu Jan 01 00:00:00 1970 +0000) Syncing all other repositories @@ -364,7 +362,7 @@ adding manifests adding file changes added 1 changesets with 1 changes to 1 files - 2 new obsolescence markers + 3 new obsolescence markers $ hg push ../private pushing to ../private @@ -373,7 +371,7 @@ adding manifests adding file changes added 1 changesets with 1 changes to 1 files - 2 new obsolescence markers + 3 new obsolescence markers $ hg push ../public pushing to ../public @@ -382,7 +380,7 @@ adding manifests adding file changes added 1 changesets with 1 changes to 1 files - 2 new obsolescence markers + 3 new obsolescence markers Creating a phasedivergence changeset where the divergent changeset changed in a way that we rebase that on old public changeset, there will be conflicts, but @@ -412,7 +410,6 @@ adding manifests adding file changes added 1 changesets with 1 changes to 1 files - new changesets b756eb10ea73 (run 'hg update' to get a working copy) $ hg push ../public @@ -433,14 +430,14 @@ pulling from ../public searching for changes no changes found - 1 new phase-divergent changesets + 1 new bumped changesets $ hg glog - @ 7:2c3560aedead foo to bar + @ 9:d529f41744b3 foo to bar | (bm) draft - | o 6:b756eb10ea73 added bar to bar + | o 7:6176b60d16d2 added bar to bar |/ () public - o 5:3d62500c673d phase-divergent update to aa071e5554e3: + o 6:bdf645eb43bb bumped update to aa071e5554e3: | () public o 3:aa071e5554e3 added foo to foo | () public @@ -453,24 +450,24 @@ --------------------------------------------------------------- $ hg evolve --phase-divergent - recreate:[7] foo to bar - atop:[6] added bar to bar + recreate:[9] foo to bar + atop:[7] added bar to bar computing new diff - committed as 502e73736632 - working directory is now at 502e73736632 + committed as 73f67b6cf2c4 + working directory is now at 73f67b6cf2c4 $ hg exp # HG changeset patch # User test # Date 0 0 # Thu Jan 01 00:00:00 1970 +0000 - # Node ID 502e737366322886cf628276aa0a2796904453b4 - # Parent b756eb10ea73ee4ba69c998e64a5c6e1005d74b5 - phase-divergent update to b756eb10ea73: + # Node ID 73f67b6cf2c428075c41d377f8651912e0d8cae2 + # Parent 6176b60d16d20d69c77bb27c2a1b79caec671612 + bumped update to 6176b60d16d2: foo to bar - diff -r b756eb10ea73 -r 502e73736632 bar + diff -r 6176b60d16d2 -r 73f67b6cf2c4 bar --- a/bar Thu Jan 01 00:00:00 1970 +0000 +++ b/bar Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +1,1 @@ @@ -478,11 +475,11 @@ +foo $ hg glog - @ 8:502e73736632 phase-divergent update to b756eb10ea73: + @ 10:73f67b6cf2c4 bumped update to 6176b60d16d2: | (bm) draft - o 6:b756eb10ea73 added bar to bar + o 7:6176b60d16d2 added bar to bar | () public - o 5:3d62500c673d phase-divergent update to aa071e5554e3: + o 6:bdf645eb43bb bumped update to aa071e5554e3: | () public o 3:aa071e5554e3 added foo to foo | () public @@ -501,7 +498,7 @@ adding manifests adding file changes added 1 changesets with 1 changes to 1 files - 2 new obsolescence markers + 3 new obsolescence markers $ hg push ../public pushing to ../public searching for changes @@ -509,7 +506,7 @@ adding manifests adding file changes added 1 changesets with 1 changes to 1 files - 2 new obsolescence markers + 3 new obsolescence markers Creating phase-divergence with divergent changeset and precursor having different parents @@ -540,8 +537,7 @@ adding manifests adding file changes added 2 changesets with 2 changes to 2 files - 2 new obsolescence markers - new changesets 502e73736632:2352021b3785 + 3 new obsolescence markers (run 'hg update' to get a working copy) $ hg push ../public pushing to ../public @@ -556,19 +552,19 @@ $ cd ../alice $ hg rebase -r . -d .^^^ - rebasing 9:2352021b3785 "added x to x" (bm tip) + rebasing 11:ae81846887bc "added x to x" (tip bm) $ hg pull ../public pulling from ../public searching for changes no changes found - 1 new phase-divergent changesets + 1 new bumped changesets $ hg obslog -r . - @ 334e300d6db5 (10) added x to x + @ 5cc37876a882 (12) added x to x | - o 2352021b3785 (9) added x to x - rewritten(parent) as 334e300d6db5 using rebase by test (Thu Jan 01 00:00:00 1970 +0000) + o ae81846887bc (11) added x to x + rewritten(parent) as 5cc37876a882 by test (Thu Jan 01 00:00:00 1970 +0000) $ hg glog -r .^:: hg: parse error at 4: not a prefix: end @@ -578,23 +574,23 @@ --------------------------------------------- $ hg evolve --phase-divergent - recreate:[10] added x to x - atop:[9] added x to x - rebasing to destination parent: 502e73736632 + recreate:[12] added x to x + atop:[11] added x to x + rebasing to destination parent: 73f67b6cf2c4 (leaving bookmark bm) computing new diff - committed as 2352021b3785 - working directory is now at 2352021b3785 + committed as ae81846887bc + working directory is now at ae81846887bc XXX: we should move bookmark here $ hg glog - @ 9:2352021b3785 added x to x + @ 11:ae81846887bc added x to x | (bm) public - o 8:502e73736632 phase-divergent update to b756eb10ea73: + o 10:73f67b6cf2c4 bumped update to 6176b60d16d2: | () public - o 6:b756eb10ea73 added bar to bar + o 7:6176b60d16d2 added bar to bar | () public - o 5:3d62500c673d phase-divergent update to aa071e5554e3: + o 6:bdf645eb43bb bumped update to aa071e5554e3: | () public o 3:aa071e5554e3 added foo to foo | () public @@ -603,15 +599,15 @@ o 0:d3873e73d99e init () public - $ hg obslog -r . b1a0e143e32b --all --hidden - x b1a0e143e32b (11) added x to x - | pruned using evolve by test (Thu Jan 01 00:00:00 1970 +0000) + $ hg obslog -r ae81846887bc --all --hidden + x 14c7c60e138f (13) added x to x + | pruned by test (Thu Jan 01 00:00:00 1970 +0000) | - x 334e300d6db5 (10) added x to x - | rewritten(parent) as b1a0e143e32b using evolve by test (Thu Jan 01 00:00:00 1970 +0000) + x 5cc37876a882 (12) added x to x + | rewritten(parent) as 14c7c60e138f by test (Thu Jan 01 00:00:00 1970 +0000) | - @ 2352021b3785 (9) added x to x - rewritten(parent) as 334e300d6db5 using rebase by test (Thu Jan 01 00:00:00 1970 +0000) + @ ae81846887bc (11) added x to x + rewritten(parent) as 5cc37876a882 by test (Thu Jan 01 00:00:00 1970 +0000) $ hg exp @@ -619,11 +615,11 @@ # User test # Date 0 0 # Thu Jan 01 00:00:00 1970 +0000 - # Node ID 2352021b37851be226ebed109b0eb6eada918566 - # Parent 502e737366322886cf628276aa0a2796904453b4 + # Node ID ae81846887bc53e9ba17ea2172950677d1ba3a1d + # Parent 73f67b6cf2c428075c41d377f8651912e0d8cae2 added x to x - diff -r 502e73736632 -r 2352021b3785 x + diff -r 73f67b6cf2c4 -r ae81846887bc x --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/x Thu Jan 01 00:00:00 1970 +0000 @@ -0,0 +1,1 @@ @@ -636,13 +632,13 @@ Alice is tired of pushing and pulling and will create phase-divergence locally $ hg glog - @ 9:2352021b3785 added x to x + @ 11:ae81846887bc added x to x | (bm) public - o 8:502e73736632 phase-divergent update to b756eb10ea73: + o 10:73f67b6cf2c4 bumped update to 6176b60d16d2: | () public - o 6:b756eb10ea73 added bar to bar + o 7:6176b60d16d2 added bar to bar | () public - o 5:3d62500c673d phase-divergent update to aa071e5554e3: + o 6:bdf645eb43bb bumped update to aa071e5554e3: | () public o 3:aa071e5554e3 added foo to foo | () public @@ -656,27 +652,27 @@ $ hg add y $ hg ci -m "y to y and foobar to foo" $ hg rebase -r . -d .^^^ - rebasing 12:dc88f5aa9bc9 "y to y and foobar to foo" (tip) + rebasing 14:43dd61d1a393 "y to y and foobar to foo" (tip) $ echo foo > y $ hg amend Alice making the old changeset public to have content-divergence - $ hg phase -r dc88f5aa9bc9 --public --hidden - 1 new phase-divergent changesets + $ hg phase -r 43dd61d1a393 --public --hidden + 1 new bumped changesets $ hg glog - @ 14:13015a180eee y to y and foobar to foo + @ 17:694790041d7d y to y and foobar to foo | () draft - | o 12:dc88f5aa9bc9 y to y and foobar to foo + | o 14:43dd61d1a393 y to y and foobar to foo | | () public - | o 9:2352021b3785 added x to x + | o 11:ae81846887bc added x to x | | (bm) public - | o 8:502e73736632 phase-divergent update to b756eb10ea73: + | o 10:73f67b6cf2c4 bumped update to 6176b60d16d2: |/ () public - o 6:b756eb10ea73 added bar to bar + o 7:6176b60d16d2 added bar to bar | () public - o 5:3d62500c673d phase-divergent update to aa071e5554e3: + o 6:bdf645eb43bb bumped update to aa071e5554e3: | () public o 3:aa071e5554e3 added foo to foo | () public @@ -686,37 +682,37 @@ () public $ hg obslog -r . - @ 13015a180eee (14) y to y and foobar to foo + @ 694790041d7d (17) y to y and foobar to foo | - x 211ab84d1689 (13) y to y and foobar to foo - | rewritten(content) as 13015a180eee using amend by test (Thu Jan 01 00:00:00 1970 +0000) + x 9195657992dd (15) y to y and foobar to foo + | rewritten(content) as 694790041d7d by test (Thu Jan 01 00:00:00 1970 +0000) | - o dc88f5aa9bc9 (12) y to y and foobar to foo - rewritten(parent) as 211ab84d1689 using rebase by test (Thu Jan 01 00:00:00 1970 +0000) + o 43dd61d1a393 (14) y to y and foobar to foo + rewritten(parent) as 9195657992dd by test (Thu Jan 01 00:00:00 1970 +0000) Resolving divergence using `hg evolve` ------------------------------------- $ hg evolve --phase-divergent - recreate:[14] y to y and foobar to foo - atop:[12] y to y and foobar to foo - rebasing to destination parent: 2352021b3785 + recreate:[17] y to y and foobar to foo + atop:[14] y to y and foobar to foo + rebasing to destination parent: ae81846887bc computing new diff - committed as 8c2bb6fb44e9 - working directory is now at 8c2bb6fb44e9 + committed as 8da44ebfc416 + working directory is now at 8da44ebfc416 $ hg exp # HG changeset patch # User test # Date 0 0 # Thu Jan 01 00:00:00 1970 +0000 - # Node ID 8c2bb6fb44e9443c64b3a2a3d061272c8e25e6ce - # Parent dc88f5aa9bc90a6418899d267d9524205dfb429b - phase-divergent update to dc88f5aa9bc9: + # Node ID 8da44ebfc416e3a6fc52c29f3a78e1d87c0d492e + # Parent 43dd61d1a393577a202514a924148969b8f74db8 + bumped update to 43dd61d1a393: y to y and foobar to foo - diff -r dc88f5aa9bc9 -r 8c2bb6fb44e9 y + diff -r 43dd61d1a393 -r 8da44ebfc416 y --- a/y Thu Jan 01 00:00:00 1970 +0000 +++ b/y Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +1,1 @@ @@ -724,17 +720,17 @@ +foo $ hg glog - @ 16:8c2bb6fb44e9 phase-divergent update to dc88f5aa9bc9: + @ 19:8da44ebfc416 bumped update to 43dd61d1a393: | () draft - o 12:dc88f5aa9bc9 y to y and foobar to foo + o 14:43dd61d1a393 y to y and foobar to foo | () public - o 9:2352021b3785 added x to x + o 11:ae81846887bc added x to x | (bm) public - o 8:502e73736632 phase-divergent update to b756eb10ea73: + o 10:73f67b6cf2c4 bumped update to 6176b60d16d2: | () public - o 6:b756eb10ea73 added bar to bar + o 7:6176b60d16d2 added bar to bar | () public - o 5:3d62500c673d phase-divergent update to aa071e5554e3: + o 6:bdf645eb43bb bumped update to aa071e5554e3: | () public o 3:aa071e5554e3 added foo to foo | () public @@ -750,32 +746,32 @@ $ echo l > l $ hg ci -Aqm "added l to l" $ hg rebase -r . -d .^^^^ - rebasing 17:f3794e5a91dc "added l to l" (tip) + rebasing 20:515507bedb51 "added l to l" (tip) $ echo kl > l $ echo foo > x $ hg add x $ hg amend $ hg obslog -r . - @ 5fd38c0de46e (19) added l to l + @ e3c208c26c0c (23) added l to l | - x 2bfd56949cf0 (18) added l to l - | rewritten(content) as 5fd38c0de46e using amend by test (Thu Jan 01 00:00:00 1970 +0000) + x c114000165ef (21) added l to l + | rewritten(content) as e3c208c26c0c by test (Thu Jan 01 00:00:00 1970 +0000) | - x f3794e5a91dc (17) added l to l - rewritten(parent) as 2bfd56949cf0 using rebase by test (Thu Jan 01 00:00:00 1970 +0000) + x 515507bedb51 (20) added l to l + rewritten(parent) as c114000165ef by test (Thu Jan 01 00:00:00 1970 +0000) - $ hg phase -r f3794e5a91dc --public --hidden - 1 new phase-divergent changesets + $ hg phase -r 515507bedb51 --public --hidden + 1 new bumped changesets Resolution using `hg evolve --phase-divergent` ---------------------------------------------- $ hg evolve --phase-divergent - recreate:[19] added l to l - atop:[17] added l to l - rebasing to destination parent: 8c2bb6fb44e9 + recreate:[23] added l to l + atop:[20] added l to l + rebasing to destination parent: 8da44ebfc416 merging x warning: conflicts while merging x! (edit, then use 'hg resolve --mark') evolution failed! @@ -784,20 +780,20 @@ [255] $ hg diff - diff -r 8c2bb6fb44e9 l + diff -r 8da44ebfc416 l --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/l Thu Jan 01 00:00:00 1970 +0000 @@ -0,0 +1,1 @@ +kl - diff -r 8c2bb6fb44e9 x + diff -r 8da44ebfc416 x --- a/x Thu Jan 01 00:00:00 1970 +0000 +++ b/x Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +1,5 @@ - +<<<<<<< destination: 8c2bb6fb44e9 - test: phase-divergent update to dc88f5aa9... + +<<<<<<< destination: 8da44ebfc416 - test: bumped update to 43dd61d1a393: x +======= +foo - +>>>>>>> evolving: 5fd38c0de46e - test: added l to l + +>>>>>>> evolving: e3c208c26c0c - test: added l to l $ echo foo > x @@ -806,27 +802,27 @@ continue: hg evolve --continue $ hg evolve --continue - evolving 19:5fd38c0de46e "added l to l" + evolving 23:e3c208c26c0c "added l to l" computing new diff - committed as e3090241a10c - working directory is now at e3090241a10c + committed as 01e0d829c156 + working directory is now at 01e0d829c156 $ hg glog - @ 21:e3090241a10c phase-divergent update to f3794e5a91dc: + @ 25:01e0d829c156 bumped update to 515507bedb51: | () draft - o 17:f3794e5a91dc added l to l + o 20:515507bedb51 added l to l | () public - o 16:8c2bb6fb44e9 phase-divergent update to dc88f5aa9bc9: + o 19:8da44ebfc416 bumped update to 43dd61d1a393: | () public - o 12:dc88f5aa9bc9 y to y and foobar to foo + o 14:43dd61d1a393 y to y and foobar to foo | () public - o 9:2352021b3785 added x to x + o 11:ae81846887bc added x to x | (bm) public - o 8:502e73736632 phase-divergent update to b756eb10ea73: + o 10:73f67b6cf2c4 bumped update to 6176b60d16d2: | () public - o 6:b756eb10ea73 added bar to bar + o 7:6176b60d16d2 added bar to bar | () public - o 5:3d62500c673d phase-divergent update to aa071e5554e3: + o 6:bdf645eb43bb bumped update to aa071e5554e3: | () public o 3:aa071e5554e3 added foo to foo | () public @@ -840,19 +836,19 @@ # User test # Date 0 0 # Thu Jan 01 00:00:00 1970 +0000 - # Node ID e3090241a10c320b6132e4673915fd6b19c0de39 - # Parent f3794e5a91dc1d4d36fee5c423386b19433a1f48 - phase-divergent update to f3794e5a91dc: + # Node ID 01e0d829c1560d8297062062dff671e272439e38 + # Parent 515507bedb512ac15258c2ab44809645139055ef + bumped update to 515507bedb51: added l to l - diff -r f3794e5a91dc -r e3090241a10c l + diff -r 515507bedb51 -r 01e0d829c156 l --- a/l Thu Jan 01 00:00:00 1970 +0000 +++ b/l Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +1,1 @@ -l +kl - diff -r f3794e5a91dc -r e3090241a10c x + diff -r 515507bedb51 -r 01e0d829c156 x --- a/x Thu Jan 01 00:00:00 1970 +0000 +++ b/x Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +1,1 @@ @@ -863,7 +859,7 @@ ------------------------------------------------------------------------ $ hg glog -r . - @ 21:e3090241a10c phase-divergent update to f3794e5a91dc: + @ 25:01e0d829c156 bumped update to 515507bedb51: | () draft ~ $ echo f > f @@ -877,45 +873,45 @@ $ hg evolve --list - $ hg phase -r 428f7900a969 --public --hidden - 1 new phase-divergent changesets + $ hg phase -r e86ee52bfd76 --public --hidden + 1 new bumped changesets - $ hg glog -r f3794e5a91dc:: - @ 24:e450d05b7d27 added g + $ hg glog -r 515507bedb51:: + @ 28:d83c51bdc098 added g | () draft - | o 23:428f7900a969 added g + | o 27:e86ee52bfd76 added g | | () public - | o 22:21ae52e414e6 added f + | o 26:d3c143cd906e added f |/ () public - o 21:e3090241a10c phase-divergent update to f3794e5a91dc: + o 25:01e0d829c156 bumped update to 515507bedb51: | () public - o 17:f3794e5a91dc added l to l + o 20:515507bedb51 added l to l | () public ~ $ hg evolve --list - e450d05b7d27: added g - phase-divergent: 21ae52e414e6 (immutable precursor) - phase-divergent: 428f7900a969 (immutable precursor) + d83c51bdc098: added g + bumped: d3c143cd906e (immutable precursor) + bumped: e86ee52bfd76 (immutable precursor) Resolving phase divergence using `hg evolve` $ hg evolve --phase-divergent --all - recreate:[24] added g - atop:[23] added g - rebasing to destination parent: 21ae52e414e6 + recreate:[28] added g + atop:[27] added g + rebasing to destination parent: d3c143cd906e computing new diff - committed as 428f7900a969 - working directory is now at 428f7900a969 + committed as e86ee52bfd76 + working directory is now at e86ee52bfd76 - $ hg glog -r f3794e5a91dc:: - @ 23:428f7900a969 added g + $ hg glog -r 515507bedb51:: + @ 27:e86ee52bfd76 added g | () public - o 22:21ae52e414e6 added f + o 26:d3c143cd906e added f | () public - o 21:e3090241a10c phase-divergent update to f3794e5a91dc: + o 25:01e0d829c156 bumped update to 515507bedb51: | () public - o 17:f3794e5a91dc added l to l + o 20:515507bedb51 added l to l | () public ~ @@ -926,112 +922,112 @@ $ echo n > n $ hg ci -Aqm "added m and n" - $ hg glog -r 21ae52e414e6:: - @ 26:849cee0a874b added m and n + $ hg glog -r d3c143cd906e:: + @ 30:bbb1ce6e7cb5 added m and n | () draft - o 23:428f7900a969 added g + o 27:e86ee52bfd76 added g | () public - o 22:21ae52e414e6 added f + o 26:d3c143cd906e added f | () public ~ $ hg prev 0 files updated, 0 files merged, 2 files removed, 0 files unresolved - [23] added g + [27] added g $ echo m > m $ hg ci -Aqm "added m" $ echo n > n $ hg ci -Aqm "added n" - $ hg glog -r 428f7900a969:: - @ 28:63ccb8ea7cae added n + $ hg glog -r e86ee52bfd76:: + @ 32:e1e84fb7bd8c added n | () draft - o 27:f313e2b90e70 added m + o 31:38f8157363bc added m | () draft - | o 26:849cee0a874b added m and n + | o 30:bbb1ce6e7cb5 added m and n |/ () draft - o 23:428f7900a969 added g + o 27:e86ee52bfd76 added g | () public ~ - $ hg prune -r 849cee0a874b --succ f313e2b90e70 --succ 63ccb8ea7cae --split + $ hg prune -r bbb1ce6e7cb5 --succ 38f8157363bc --succ e1e84fb7bd8c --split 1 changesets pruned - $ hg phase -r 849cee0a874b --hidden --public - 2 new phase-divergent changesets + $ hg phase -r bbb1ce6e7cb5 --hidden --public + 2 new bumped changesets - $ hg glog -r 428f7900a969:: - @ 28:63ccb8ea7cae added n + $ hg glog -r e86ee52bfd76:: + @ 32:e1e84fb7bd8c added n | () draft - o 27:f313e2b90e70 added m + o 31:38f8157363bc added m | () draft - | o 26:849cee0a874b added m and n + | o 30:bbb1ce6e7cb5 added m and n |/ () public - o 23:428f7900a969 added g + o 27:e86ee52bfd76 added g | () public ~ $ hg evolve --all --phase-divergent - recreate:[27] added m - atop:[26] added m and n + recreate:[31] added m + atop:[30] added m and n computing new diff - committed as 870e1c3eddc3 - recreate:[28] added n - atop:[26] added m and n - rebasing to destination parent: 428f7900a969 + committed as 26c0e0acbf58 + recreate:[32] added n + atop:[30] added m and n + rebasing to destination parent: e86ee52bfd76 computing new diff - committed as 154b0179fb9b - working directory is now at 154b0179fb9b + committed as 167994483a30 + working directory is now at 167994483a30 XXX: this is messy, we should solve things in better way - $ hg glog -r 428f7900a969:: --hidden - @ 31:154b0179fb9b phase-divergent update to 849cee0a874b: + $ hg glog -r e86ee52bfd76:: --hidden + @ 35:167994483a30 bumped update to bbb1ce6e7cb5: | () draft - | x 30:1ebf33547a82 added n + | x 34:ebca40be1c77 added n | | () draft - +---o 29:870e1c3eddc3 phase-divergent update to 849cee0a874b: + +---o 33:26c0e0acbf58 bumped update to bbb1ce6e7cb5: | | () draft - | | x 28:63ccb8ea7cae added n + | | x 32:e1e84fb7bd8c added n | | | () draft - | | x 27:f313e2b90e70 added m + | | x 31:38f8157363bc added m | |/ () draft - o | 26:849cee0a874b added m and n + o | 30:bbb1ce6e7cb5 added m and n |/ () public - o 23:428f7900a969 added g + o 27:e86ee52bfd76 added g | () public ~ XXX: not sure this is the correct - $ hg exp 154b0179fb9b + $ hg exp 167994483a30 # HG changeset patch # User test # Date 0 0 # Thu Jan 01 00:00:00 1970 +0000 - # Node ID 154b0179fb9b53d2f853d6ba04740bb3d7a5cabe - # Parent 849cee0a874be7c4e75dfacb5ad72aa5696951ba - phase-divergent update to 849cee0a874b: + # Node ID 167994483a3052f6ea76aa4ba54bd0d6ecd03506 + # Parent bbb1ce6e7cb56a4d0ddd9b602492c1e79f2beaf5 + bumped update to bbb1ce6e7cb5: added n - diff -r 849cee0a874b -r 154b0179fb9b m + diff -r bbb1ce6e7cb5 -r 167994483a30 m --- a/m Thu Jan 01 00:00:00 1970 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -m XXX: not sure this is correct - $ hg exp 870e1c3eddc3 + $ hg exp 26c0e0acbf58 --hidden # HG changeset patch # User test # Date 0 0 # Thu Jan 01 00:00:00 1970 +0000 - # Node ID 870e1c3eddc34cc475e8e13d2fe1934210c1937e - # Parent 849cee0a874be7c4e75dfacb5ad72aa5696951ba - phase-divergent update to 849cee0a874b: + # Node ID 26c0e0acbf58e4bd2a2414e43b7d2d8aefdbba60 + # Parent bbb1ce6e7cb56a4d0ddd9b602492c1e79f2beaf5 + bumped update to bbb1ce6e7cb5: added m - diff -r 849cee0a874b -r 870e1c3eddc3 n + diff -r bbb1ce6e7cb5 -r 26c0e0acbf58 n --- a/n Thu Jan 01 00:00:00 1970 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ @@ -1046,107 +1042,107 @@ $ hg prev 0 files updated, 0 files merged, 2 files removed, 0 files unresolved - [31] phase-divergent update to 849cee0a874b: + [35] bumped update to bbb1ce6e7cb5: $ echo p > p $ hg ci -Aqm "added p" $ hg prev 0 files updated, 0 files merged, 1 files removed, 0 files unresolved - [31] phase-divergent update to 849cee0a874b: + [35] bumped update to bbb1ce6e7cb5: $ echo q > q $ hg ci -Aqm "added q" - $ hg glog -r 154b0179fb9b:: - @ 34:e046341aa97c added q + $ hg glog -r 167994483a30:: + @ 38:25009377929c added q | () draft - | o 33:6f8c250eecff added p + | o 37:a27f3cc92c8f added p |/ () draft - | o 32:8a70f55b2af3 added p and q + | o 36:f695c2c8812d added p and q |/ () draft - o 31:154b0179fb9b phase-divergent update to 849cee0a874b: + o 35:167994483a30 bumped update to bbb1ce6e7cb5: | () draft ~ - $ hg prune -r 8a70f55b2af3 --succ 6f8c250eecff --succ e046341aa97c --split + $ hg prune -r f695c2c8812d --succ a27f3cc92c8f --succ 25009377929c --split 1 changesets pruned - $ hg phase -r 8a70f55b2af3 --public --hidden - 2 new phase-divergent changesets + $ hg phase -r f695c2c8812d --public --hidden + 2 new bumped changesets - $ hg glog -r 154b0179fb9b:: - @ 34:e046341aa97c added q + $ hg glog -r 167994483a30:: + @ 38:25009377929c added q | () draft - | o 33:6f8c250eecff added p + | o 37:a27f3cc92c8f added p |/ () draft - | o 32:8a70f55b2af3 added p and q + | o 36:f695c2c8812d added p and q |/ () public - o 31:154b0179fb9b phase-divergent update to 849cee0a874b: + o 35:167994483a30 bumped update to bbb1ce6e7cb5: | () public ~ $ hg evolve --list - 6f8c250eecff: added p - phase-divergent: 8a70f55b2af3 (immutable precursor) + a27f3cc92c8f: added p + bumped: f695c2c8812d (immutable precursor) - e046341aa97c: added q - phase-divergent: 8a70f55b2af3 (immutable precursor) + 25009377929c: added q + bumped: f695c2c8812d (immutable precursor) $ hg evolve --all --phase-divergent - recreate:[33] added p - atop:[32] added p and q + recreate:[37] added p + atop:[36] added p and q computing new diff - committed as f3e41d89b3c5 - recreate:[34] added q - atop:[32] added p and q + committed as abd19926ab01 + recreate:[38] added q + atop:[36] added p and q computing new diff - committed as 605c306d4f87 - working directory is now at 605c306d4f87 + committed as 12c31db4edf9 + working directory is now at 12c31db4edf9 - $ hg glog -r 154b0179fb9b:: --hidden - @ 36:605c306d4f87 phase-divergent update to 8a70f55b2af3: + $ hg glog -r 167994483a30:: --hidden + @ 40:12c31db4edf9 bumped update to f695c2c8812d: | () draft - | o 35:f3e41d89b3c5 phase-divergent update to 8a70f55b2af3: + | o 39:abd19926ab01 bumped update to f695c2c8812d: |/ () draft - | x 34:e046341aa97c added q + | x 38:25009377929c added q | | () draft - | | x 33:6f8c250eecff added p + | | x 37:a27f3cc92c8f added p | |/ () draft - o | 32:8a70f55b2af3 added p and q + o | 36:f695c2c8812d added p and q |/ () public - o 31:154b0179fb9b phase-divergent update to 849cee0a874b: + o 35:167994483a30 bumped update to bbb1ce6e7cb5: | () public ~ XXX: not sure this is correct - $ hg exp 605c306d4f87 + $ hg exp 12c31db4edf9 # HG changeset patch # User test # Date 0 0 # Thu Jan 01 00:00:00 1970 +0000 - # Node ID 605c306d4f87fccfdb5e7dd1c750b6d4f813defb - # Parent 8a70f55b2af35452916dc89401a5ecf6553646a5 - phase-divergent update to 8a70f55b2af3: + # Node ID 12c31db4edf9a889e3ce9986f484bbf939f4fb42 + # Parent f695c2c8812d12a910a47440ee189e553326a1c8 + bumped update to f695c2c8812d: added q - diff -r 8a70f55b2af3 -r 605c306d4f87 p + diff -r f695c2c8812d -r 12c31db4edf9 p --- a/p Thu Jan 01 00:00:00 1970 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -p XXX: not sure this is correct - $ hg exp f3e41d89b3c5 + $ hg exp abd19926ab01 # HG changeset patch # User test # Date 0 0 # Thu Jan 01 00:00:00 1970 +0000 - # Node ID f3e41d89b3c5f6ee49ccc734045856d7b025f048 - # Parent 8a70f55b2af35452916dc89401a5ecf6553646a5 - phase-divergent update to 8a70f55b2af3: + # Node ID abd19926ab0109f43f38e732cfa8ae747e2e4187 + # Parent f695c2c8812d12a910a47440ee189e553326a1c8 + bumped update to f695c2c8812d: added p - diff -r 8a70f55b2af3 -r f3e41d89b3c5 q + diff -r f695c2c8812d -r abd19926ab01 q --- a/q Thu Jan 01 00:00:00 1970 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ @@ -1155,14 +1151,14 @@ Testing the evolution of a phase-divergent merge with no conflicts ------------------------------------------------------------------ - $ hg glog -r 154b0179fb9b:: - @ 36:605c306d4f87 phase-divergent update to 8a70f55b2af3: + $ hg glog -r 167994483a30:: + @ 40:12c31db4edf9 bumped update to f695c2c8812d: | () draft - | o 35:f3e41d89b3c5 phase-divergent update to 8a70f55b2af3: + | o 39:abd19926ab01 bumped update to f695c2c8812d: |/ () draft - o 32:8a70f55b2af3 added p and q + o 36:f695c2c8812d added p and q | () public - o 31:154b0179fb9b phase-divergent update to 849cee0a874b: + o 35:167994483a30 bumped update to bbb1ce6e7cb5: | () public ~ @@ -1170,53 +1166,53 @@ $ hg ci -Aqm "added h" $ hg prev 0 files updated, 0 files merged, 1 files removed, 0 files unresolved - [36] phase-divergent update to 8a70f55b2af3: + [40] bumped update to f695c2c8812d: $ echo i > i $ hg ci -Aqm "added i" - $ hg merge -r ef8c23f37b55 + $ hg merge -r 'desc("added h")' 1 files updated, 0 files merged, 0 files removed, 0 files unresolved (branch merge, don't forget to commit) $ hg ci -m "merge h and i" - $ hg glog -r 605c306d4f87:: - @ 39:12ebe0d625d7 merge h and i + $ hg glog -r 12c31db4edf9:: + @ 43:98ce636fa344 merge h and i |\ () draft - | o 38:9bb561db4230 added i + | o 42:c13ebd59dd4e added i | | () draft - o | 37:ef8c23f37b55 added h + o | 41:10bb6c8a838f added h |/ () draft - o 36:605c306d4f87 phase-divergent update to 8a70f55b2af3: + o 40:12c31db4edf9 bumped update to f695c2c8812d: | () draft ~ - $ hg up ef8c23f37b55 + $ hg up 10bb6c8a838f 0 files updated, 0 files merged, 1 files removed, 0 files unresolved - $ hg merge -r 9bb561db4230 + $ hg merge -r c13ebd59dd4e 1 files updated, 0 files merged, 0 files removed, 0 files unresolved (branch merge, don't forget to commit) $ hg ci -m "merge h and i successor" created new head - $ hg glog -r 605c306d4f87:: - @ 40:d2aeda868461 merge h and i successor + $ hg glog -r 12c31db4edf9:: + @ 44:57c7c43469f2 merge h and i successor |\ () draft - +---o 39:12ebe0d625d7 merge h and i + +---o 43:98ce636fa344 merge h and i | |/ () draft - | o 38:9bb561db4230 added i + | o 42:c13ebd59dd4e added i | | () draft - o | 37:ef8c23f37b55 added h + o | 41:10bb6c8a838f added h |/ () draft - o 36:605c306d4f87 phase-divergent update to 8a70f55b2af3: + o 40:12c31db4edf9 bumped update to f695c2c8812d: | () draft ~ - $ hg prune -r 12ebe0d625d7 --succ . + $ hg prune -r 98ce636fa344 --succ . 1 changesets pruned - $ hg phase 12ebe0d625d7 --hidden --public - 1 new phase-divergent changesets + $ hg phase 98ce636fa344 --hidden --public + 1 new bumped changesets Resolution of phase-divergent merge commit using `hg evolve` XXX: we should handle phase-divergent merges $ hg evolve --phase-divergent - skipping d2aeda868461 : we do not handle merge yet + skipping 57c7c43469f2 : we do not handle merge yet