annotate tests/test-evolve-content-divergent-case-A3.t @ 5572:d7d954b6d518

evolve: remove swapping nodes logic while resolving divergence Before this patch, while solving content-divergence if one of the divergent cset need to relocate to resolution parent we used to set that cset to "other" side; so it was like we are always going to relocate "other" side which made us to swap the two if "divergent" cset need to relocate. Above mentioned solution for relocating cset was not good and led us to incorrect output in some cases. So this patch, simplify the logic and remove the swapping thing and clearly depend on resolution parent to check if any of the divergent cset needs to relocate. This also means that now in some cases if both the divergent csets needs to relocate, both will be relocated. Even before this patch, there are some cases where both the divergent csets relocated but not in every case where it should have. Coming to the changes in test files: 1) changes in order of merging the two divergent csets is due to fact that now "divergent" and "other" are not swapped and hence "divergent" will be at local side and "other" will be at "other", which also results in change in the hash id for some cases. 2) extra changesets: which is the result of the fact that now we don't miss any case where both the divergent csets should be based on resolution parent before performing the merge -> which caught some cases and performed relocation, hence extra changesets. Although you can find that there is no changes in file content because of these relocation, but I remember loosing some data because of not relocating the "divergent", so why leave any risk out there by not relocating "other" to the resolution parent.
author Sushil khanchi <sushilkhanchi97@gmail.com>
date Sun, 20 Sep 2020 09:22:04 +0530
parents 29366c95306d
children c2fab88e6d60
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5391
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
1 ===============================================
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
2 Testing content-divergence resolution: Case A.3
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
3 ===============================================
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
4
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
5 Independent rewrites of same changeset can lead to content-divergence. In most
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
6 common cases, it can occur when multiple users rewrite the same changeset
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
7 independently and push it.
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
8
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
9 This test belongs to a series of tests checking the resolution of content-divergent
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
10 changesets.
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
11
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
12 Category A: no parents are obsolete
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
13 Testcase 3: one side relocated forward and other amended content changes
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
14 Variants:
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
15 # a: "local" is rebased forward
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
16 # b: "other" is rebased forward
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
17
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
18 A.3 Relocated forward; other side amended content changes
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
19 =========================================================
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
20
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
21 .. (Divergence reason):
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
22 .. local: relocated the changeset forward in the graph
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
23 .. other: amended some content changes
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
24 .. Where we show that since one side amended some changes and other just relocated,
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
25 .. the most reasonable behaviour is to relocate the amended one to the same parent as
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
26 .. relocated one and perform 3-way merge.
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
27 ..
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
28 .. (local):
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
29 ..
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
30 .. C ø⇠○ C'
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
31 .. | |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
32 .. | ○ B
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
33 .. \ |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
34 .. ○ A
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
35 .. |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
36 .. ● O
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
37 ..
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
38 .. (other):
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
39 ..
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
40 .. C ø⇠○ C''
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
41 .. | |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
42 .. B ○ | |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
43 .. \ | /
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
44 .. A ○
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
45 .. |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
46 .. ● O
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
47 ..
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
48 .. (Resolution):
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
49 ..
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
50 .. ○ C'''
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
51 .. |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
52 .. ○ B
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
53 .. |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
54 .. ○ A
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
55 .. |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
56 .. ● O
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
57 ..
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
58
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
59 Setup
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
60 -----
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
61 $ . $TESTDIR/testlib/content-divergence-util.sh
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
62 $ setuprepos A.3
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
63 creating test repo for test case A.3
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
64 - upstream
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
65 - local
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
66 - other
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
67 cd into `local` and proceed with env setup
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
68
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
69 initial
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
70
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
71 $ cd upstream
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
72 $ mkcommit A
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
73 $ mkcommit B
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
74 $ hg prev
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
75 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
76 [1] A
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
77 $ mkcommit C
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
78 created new head
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
79 $ cd ../local
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
80 $ hg pull -qu
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
81 $ hg rebase -r 'desc(C)' -d 'desc(B)'
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
82 rebasing 3:928c8849ec01 "C" (tip)
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
83
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
84 $ cd ../other
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
85 $ hg pull -qu
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
86 $ echo newC > C
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
87 $ hg amend
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
88 $ hg push -q
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
89
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
90 $ cd ../local
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
91 $ hg push -fq
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
92 2 new content-divergent changesets
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
93 $ hg pull -q
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
94 2 new content-divergent changesets
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
95
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
96 Actual test of resolution
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
97 -------------------------
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
98
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
99 Variant_a: when "local" is rebased forward
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
100 ------------------------------------------
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
101 $ hg evolve -l
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
102 384129981c4b: C
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
103 content-divergent: 710d96992b40 (draft) (precursor 928c8849ec01)
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
104
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
105 710d96992b40: C
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
106 content-divergent: 384129981c4b (draft) (precursor 928c8849ec01)
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
107
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
108 $ hg log -G --hidden
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
109 * 5:710d96992b40 (draft): C [content-divergent]
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
110 |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
111 | @ 4:384129981c4b (draft): C [content-divergent]
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
112 | |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
113 +---x 3:928c8849ec01 (draft): C
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
114 | |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
115 | o 2:f6fbb35d8ac9 (draft): B
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
116 |/
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
117 o 1:f5bc6836db60 (draft): A
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
118 |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
119 o 0:a9bdc8b26820 (public): O
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
120
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
121
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
122 $ hg evolve --content-divergent
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
123 merge:[4] C
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
124 with: [5] C
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
125 base: [3] C
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
126 rebasing "other" content-divergent changeset 710d96992b40 on f6fbb35d8ac9
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
127 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
128 working directory is now at 3ad062d48137
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
129
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
130 $ hg log -G
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
131 @ 7:3ad062d48137 (draft): C
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
132 |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
133 o 2:f6fbb35d8ac9 (draft): B
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
134 |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
135 o 1:f5bc6836db60 (draft): A
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
136 |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
137 o 0:a9bdc8b26820 (public): O
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
138
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
139 $ hg log -pl 1
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
140 7:3ad062d48137 (draft): C
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
141 diff -r f6fbb35d8ac9 -r 3ad062d48137 C
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
142 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
143 +++ b/C Thu Jan 01 00:00:00 1970 +0000
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
144 @@ -0,0 +1,1 @@
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
145 +newC
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
146
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
147 $ hg evolve -l
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
148
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
149 Variant_b: when "other" is rebased forward
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
150 ------------------------------------------
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
151
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
152 $ cd ../other
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
153 $ hg pull -q
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
154 2 new content-divergent changesets
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
155 $ hg evolve -l
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
156 710d96992b40: C
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
157 content-divergent: 384129981c4b (draft) (precursor 928c8849ec01)
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
158
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
159 384129981c4b: C
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
160 content-divergent: 710d96992b40 (draft) (precursor 928c8849ec01)
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
161
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
162 $ hg log -G --hidden
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
163 * 5:384129981c4b (draft): C [content-divergent]
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
164 |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
165 | @ 4:710d96992b40 (draft): C [content-divergent]
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
166 | |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
167 | | x 3:928c8849ec01 (draft): C
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
168 | |/
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
169 o | 2:f6fbb35d8ac9 (draft): B
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
170 |/
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
171 o 1:f5bc6836db60 (draft): A
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
172 |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
173 o 0:a9bdc8b26820 (public): O
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
174
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
175 $ hg evolve --content-divergent
5572
d7d954b6d518 evolve: remove swapping nodes logic while resolving divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 5391
diff changeset
176 merge:[4] C
d7d954b6d518 evolve: remove swapping nodes logic while resolving divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 5391
diff changeset
177 with: [5] C
5391
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
178 base: [3] C
5572
d7d954b6d518 evolve: remove swapping nodes logic while resolving divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 5391
diff changeset
179 rebasing "divergent" content-divergent changeset 710d96992b40 on f6fbb35d8ac9
d7d954b6d518 evolve: remove swapping nodes logic while resolving divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 5391
diff changeset
180 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
d7d954b6d518 evolve: remove swapping nodes logic while resolving divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 5391
diff changeset
181 working directory is now at 8f91b97f6f9a
5391
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
182
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
183 $ hg log -G
5572
d7d954b6d518 evolve: remove swapping nodes logic while resolving divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 5391
diff changeset
184 @ 7:8f91b97f6f9a (draft): C
5391
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
185 |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
186 o 2:f6fbb35d8ac9 (draft): B
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
187 |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
188 o 1:f5bc6836db60 (draft): A
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
189 |
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
190 o 0:a9bdc8b26820 (public): O
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
191
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
192 $ hg evolve -l
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
193
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
194 $ hg log -pl1
5572
d7d954b6d518 evolve: remove swapping nodes logic while resolving divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 5391
diff changeset
195 7:8f91b97f6f9a (draft): C
d7d954b6d518 evolve: remove swapping nodes logic while resolving divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 5391
diff changeset
196 diff -r f6fbb35d8ac9 -r 8f91b97f6f9a C
5391
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
197 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
198 +++ b/C Thu Jan 01 00:00:00 1970 +0000
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
199 @@ -0,0 +1,1 @@
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
200 +newC
29366c95306d evolve: add test for content-div case A3
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
diff changeset
201