annotate tests/test-evolve-content-divergent-case-A3.t @ 6760:477a1e8b77d8 mercurial-5.8

test-compat: merge mercurial-5.9 into mercurial-5.8
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 11 Apr 2024 12:33:39 -0300
parents 53d63b608230
children 1328195f76a9
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)'
5647
c2fab88e6d60 tests: rebase now produces different "one-line summary" output
Martin von Zweigbergk <martinvonz@google.com>
parents: 5572
diff changeset
82 rebasing 3:928c8849ec01 tip "C"
5391
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
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 5647
diff changeset
128 working directory is now at b341bfa8675e
5391
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
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 5647
diff changeset
131 @ 7:b341bfa8675e (draft): C
5391
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
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 5647
diff changeset
140 7:b341bfa8675e (draft): C
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 5647
diff changeset
141 diff -r f6fbb35d8ac9 -r b341bfa8675e C
5391
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
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 5647
diff changeset
181 working directory is now at 0de314083dd2
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
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 5647
diff changeset
184 @ 7:0de314083dd2 (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
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 5647
diff changeset
195 7:0de314083dd2 (draft): C
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 5647
diff changeset
196 diff -r f6fbb35d8ac9 -r 0de314083dd2 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