author | Anton Shestakov <av6@dwimlabs.net> |
Wed, 24 Apr 2019 15:59:02 +0200 | |
changeset 4577 | bcd52ce0916d |
parent 4490 | 7a5c6109ee84 |
child 4633 | 61c2518cd6d2 |
permissions | -rw-r--r-- |
4481
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4424
diff
changeset
|
1 |
====================================================== |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4424
diff
changeset
|
2 |
Tests the resolution of content divergence: relocation |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4424
diff
changeset
|
3 |
====================================================== |
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4424
diff
changeset
|
4 |
|
d02a7c8cdee5
test: consolidate the content-divergent test cases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4424
diff
changeset
|
5 |
This file intend to cover case where changesets need to be moved to different parents |
3790
5b9e3aaa6da8
evolve: prompt user for branch selection while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
6 |
|
5b9e3aaa6da8
evolve: prompt user for branch selection while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
7 |
$ cat >> $HGRCPATH <<EOF |
5b9e3aaa6da8
evolve: prompt user for branch selection while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
8 |
> [alias] |
5b9e3aaa6da8
evolve: prompt user for branch selection while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
9 |
> glog = log -GT "{rev}:{node|short} {desc|firstline}\n ({bookmarks}) [{branch}] {phase}" |
3844
48fbccfd1dff
tests: add test of resolution of content-divergent stacks
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3842
diff
changeset
|
10 |
> [phases] |
48fbccfd1dff
tests: add test of resolution of content-divergent stacks
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3842
diff
changeset
|
11 |
> publish = False |
3790
5b9e3aaa6da8
evolve: prompt user for branch selection while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
12 |
> [extensions] |
3804
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
13 |
> rebase = |
3790
5b9e3aaa6da8
evolve: prompt user for branch selection while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
14 |
> EOF |
5b9e3aaa6da8
evolve: prompt user for branch selection while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
15 |
$ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH |
5b9e3aaa6da8
evolve: prompt user for branch selection while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
16 |
|
3804
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
17 |
|
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
18 |
Testing resolution of content-divergent changesets when they are on different |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
19 |
parents and resolution and relocation wont result in conflicts |
3804
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
20 |
------------------------------------------------------------------------------ |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
21 |
|
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
22 |
$ hg init multiparents |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
23 |
$ cd multiparents |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
24 |
$ echo ".*\.orig" > .hgignore |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
25 |
$ hg add .hgignore |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
26 |
$ hg ci -m "added hgignore" |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
27 |
$ for ch in a b c d; do echo foo > $ch; hg add $ch; hg ci -qm "added "$ch; done; |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
28 |
|
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
29 |
$ hg glog |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
30 |
@ 4:c41c793e0ef1 added d |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
31 |
| () [default] draft |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
32 |
o 3:ca1b80f7960a added c |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
33 |
| () [default] draft |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
34 |
o 2:b1661037fa25 added b |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
35 |
| () [default] draft |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
36 |
o 1:c7586e2a9264 added a |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
37 |
| () [default] draft |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
38 |
o 0:8fa14d15e168 added hgignore |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
39 |
() [default] draft |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
40 |
|
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
41 |
$ hg up .^^ |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
42 |
0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
43 |
$ echo bar > b |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
44 |
$ hg amend |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
45 |
2 new orphan changesets |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
46 |
|
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
47 |
$ hg rebase -r b1661037fa25 -d 8fa14d15e168 --hidden --config experimental.evolution.allowdivergence=True |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
48 |
rebasing 2:b1661037fa25 "added b" |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
49 |
2 new content-divergent changesets |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
50 |
|
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
51 |
$ hg glog |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
52 |
* 6:da4b96f4a8d6 added b |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
53 |
| () [default] draft |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
54 |
| @ 5:7ed0642d644b added b |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
55 |
| | () [default] draft |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
56 |
| | * 4:c41c793e0ef1 added d |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
57 |
| | | () [default] draft |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
58 |
| | * 3:ca1b80f7960a added c |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
59 |
| | | () [default] draft |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
60 |
| | x 2:b1661037fa25 added b |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
61 |
| |/ () [default] draft |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
62 |
| o 1:c7586e2a9264 added a |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
63 |
|/ () [default] draft |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
64 |
o 0:8fa14d15e168 added hgignore |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
65 |
() [default] draft |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
66 |
|
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
67 |
$ hg evolve --content-divergent |
3805
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
68 |
merge:[5] added b |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
69 |
with: [6] added b |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
70 |
base: [2] added b |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
71 |
rebasing "other" content-divergent changeset da4b96f4a8d6 on c7586e2a9264 |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
72 |
updating to "local" side of the conflict: 7ed0642d644b |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
73 |
merging "other" content-divergent changeset '11f849d7159f' |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
74 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
75 |
working directory is now at 171614c9a791 |
3804
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
76 |
|
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
77 |
$ hg glog |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
78 |
@ 8:171614c9a791 added b |
3804
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
79 |
| () [default] draft |
3805
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
80 |
| * 4:c41c793e0ef1 added d |
3804
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
81 |
| | () [default] draft |
3805
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
82 |
| * 3:ca1b80f7960a added c |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
83 |
| | () [default] draft |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
84 |
| x 2:b1661037fa25 added b |
3804
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
85 |
|/ () [default] draft |
3805
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
86 |
o 1:c7586e2a9264 added a |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
87 |
| () [default] draft |
3804
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
88 |
o 0:8fa14d15e168 added hgignore |
509b1e66f0b9
tests: add tests for resolving content-divergence with parent change
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3802
diff
changeset
|
89 |
() [default] draft |
3805
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
90 |
|
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
91 |
$ hg exp |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
92 |
# HG changeset patch |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
93 |
# User test |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
94 |
# Date 0 0 |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
95 |
# Thu Jan 01 00:00:00 1970 +0000 |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
96 |
# Node ID 171614c9a7914c53f531373b95632323fdbbac8d |
3805
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
97 |
# Parent c7586e2a92645e473645847a7b69a6dc52be4276 |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
98 |
added b |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
99 |
|
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
100 |
diff -r c7586e2a9264 -r 171614c9a791 b |
3805
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
101 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
102 |
+++ b/b Thu Jan 01 00:00:00 1970 +0000 |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
103 |
@@ -0,0 +1,1 @@ |
2410e7063692
evolve: implement resolution of content-divergence when on differet parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3804
diff
changeset
|
104 |
+bar |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
105 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
106 |
Resolving orphans to get back to a normal graph |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
107 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
108 |
$ hg evolve --all |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
109 |
move:[3] added c |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
110 |
atop:[8] added b |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
111 |
move:[4] added d |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
112 |
$ hg glog |
4577
bcd52ce0916d
evolve: don't update after instability resolution by default (BC)
Anton Shestakov <av6@dwimlabs.net>
parents:
4490
diff
changeset
|
113 |
o 10:4ae4427ee9f8 added d |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
114 |
| () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
115 |
o 9:917281f93fcb added c |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
116 |
| () [default] draft |
4577
bcd52ce0916d
evolve: don't update after instability resolution by default (BC)
Anton Shestakov <av6@dwimlabs.net>
parents:
4490
diff
changeset
|
117 |
@ 8:171614c9a791 added b |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
118 |
| () [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
119 |
o 1:c7586e2a9264 added a |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
120 |
| () [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
121 |
o 0:8fa14d15e168 added hgignore |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
122 |
() [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
123 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
124 |
More testing! |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
125 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
126 |
$ echo x > x |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
127 |
$ hg ci -Aqm "added x" |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
128 |
$ hg glog -r . |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
129 |
@ 11:71a392c714b5 added x |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
130 |
| () [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
131 |
~ |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
132 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
133 |
$ echo foo > x |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
134 |
$ hg branch bar |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
135 |
marked working directory as branch bar |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
136 |
(branches are permanent and global, did you want a bookmark?) |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
137 |
$ hg amend -m "added foo to x" |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
138 |
|
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
139 |
$ hg up 71a392c714b5 --hidden |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
140 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
141 |
updated to hidden changeset 71a392c714b5 |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
142 |
(hidden revision '71a392c714b5' was rewritten as: 1e1a50385a7d) |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
143 |
working directory parent is obsolete! (71a392c714b5) |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
144 |
(use 'hg evolve' to update to its successor: 1e1a50385a7d) |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
145 |
$ hg rebase -r . -d 4ae4427ee9f8 --config experimental.evolution.allowdivergence=True |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
146 |
rebasing 11:71a392c714b5 "added x" |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
147 |
2 new content-divergent changesets |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
148 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
149 |
$ hg glog |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
150 |
@ 13:1e4f6b3bb39b added x |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
151 |
| () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
152 |
| * 12:1e1a50385a7d added foo to x |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
153 |
| | () [bar] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
154 |
o | 10:4ae4427ee9f8 added d |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
155 |
| | () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
156 |
o | 9:917281f93fcb added c |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
157 |
|/ () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
158 |
o 8:171614c9a791 added b |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
159 |
| () [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
160 |
o 1:c7586e2a9264 added a |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
161 |
| () [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
162 |
o 0:8fa14d15e168 added hgignore |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
163 |
() [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
164 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
165 |
$ hg evolve --content-divergent |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
166 |
merge:[13] added x |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
167 |
with: [12] added foo to x |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
168 |
base: [11] added x |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
169 |
rebasing "other" content-divergent changeset 1e1a50385a7d on 4ae4427ee9f8 |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
170 |
updating to "local" side of the conflict: 1e4f6b3bb39b |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
171 |
merging "other" content-divergent changeset '80cc9b1ec650' |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
172 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
173 |
working directory is now at b006cf317e0e |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
174 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
175 |
$ hg exp |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
176 |
# HG changeset patch |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
177 |
# User test |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
178 |
# Date 0 0 |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
179 |
# Thu Jan 01 00:00:00 1970 +0000 |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
180 |
# Branch bar |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
181 |
# Node ID b006cf317e0ed16dbe786c439577475580f645f1 |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
182 |
# Parent 4ae4427ee9f8f0935211fd66360948b77ab5aee9 |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
183 |
added foo to x |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
184 |
|
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
185 |
diff -r 4ae4427ee9f8 -r b006cf317e0e x |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
186 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
187 |
+++ b/x Thu Jan 01 00:00:00 1970 +0000 |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
188 |
@@ -0,0 +1,1 @@ |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
189 |
+foo |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
190 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
191 |
The above `hg exp` and the following log call demonstrates that message, content |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
192 |
and branch change is preserved in case of relocation |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
193 |
$ hg glog |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
194 |
@ 15:b006cf317e0e added foo to x |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
195 |
| () [bar] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
196 |
o 10:4ae4427ee9f8 added d |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
197 |
| () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
198 |
o 9:917281f93fcb added c |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
199 |
| () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
200 |
o 8:171614c9a791 added b |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
201 |
| () [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
202 |
o 1:c7586e2a9264 added a |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
203 |
| () [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
204 |
o 0:8fa14d15e168 added hgignore |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
205 |
() [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
206 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
207 |
Testing when both the content-divergence are on different parents and resolution |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
208 |
will lead to conflicts |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
209 |
--------------------------------------------------------------------------------- |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
210 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
211 |
$ hg up .^^^ |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
212 |
0 files updated, 0 files merged, 3 files removed, 0 files unresolved |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
213 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
214 |
$ echo y > y |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
215 |
$ hg ci -Aqm "added y" |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
216 |
$ hg glog -r . |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
217 |
@ 16:fc6ad2bac162 added y |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
218 |
| () [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
219 |
~ |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
220 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
221 |
$ echo bar > y |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
222 |
$ hg amend |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
223 |
|
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
224 |
$ hg up fc6ad2bac162 --hidden |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
225 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
226 |
updated to hidden changeset fc6ad2bac162 |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
227 |
(hidden revision 'fc6ad2bac162' was rewritten as: 2a9f6ccbdeba) |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
228 |
working directory parent is obsolete! (fc6ad2bac162) |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
229 |
(use 'hg evolve' to update to its successor: 2a9f6ccbdeba) |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
230 |
$ hg rebase -r . -d b006cf317e0e --config experimental.evolution.allowdivergence=True |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
231 |
rebasing 16:fc6ad2bac162 "added y" |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
232 |
2 new content-divergent changesets |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
233 |
$ echo wat > y |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
234 |
$ hg amend |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
235 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
236 |
$ hg glog |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
237 |
@ 19:b4575ed6fcfc added y |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
238 |
| () [bar] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
239 |
| * 17:2a9f6ccbdeba added y |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
240 |
| | () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
241 |
o | 15:b006cf317e0e added foo to x |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
242 |
| | () [bar] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
243 |
o | 10:4ae4427ee9f8 added d |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
244 |
| | () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
245 |
o | 9:917281f93fcb added c |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
246 |
|/ () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
247 |
o 8:171614c9a791 added b |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
248 |
| () [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
249 |
o 1:c7586e2a9264 added a |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
250 |
| () [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
251 |
o 0:8fa14d15e168 added hgignore |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
252 |
() [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
253 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
254 |
$ hg evolve --content-divergent |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
255 |
merge:[19] added y |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
256 |
with: [17] added y |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
257 |
base: [16] added y |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
258 |
rebasing "other" content-divergent changeset 2a9f6ccbdeba on b006cf317e0e |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
259 |
updating to "local" side of the conflict: b4575ed6fcfc |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
260 |
merging "other" content-divergent changeset '48f745db3f53' |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
261 |
merging y |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
262 |
warning: conflicts while merging y! (edit, then use 'hg resolve --mark') |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
263 |
0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
3852
629558d09898
evolve: raise error.InterventionRequired instead of Abort when conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3850
diff
changeset
|
264 |
fix conflicts and see `hg help evolve.interrupted` |
629558d09898
evolve: raise error.InterventionRequired instead of Abort when conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3850
diff
changeset
|
265 |
[1] |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
266 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
267 |
$ echo watbar > y |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
268 |
$ hg resolve -m |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
269 |
(no more unresolved files) |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
270 |
continue: hg evolve --continue |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
271 |
$ hg evolve --continue |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
272 |
working directory is now at 7bbcf24ddecf |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
273 |
|
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
274 |
$ hg glog |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
275 |
@ 21:7bbcf24ddecf added y |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
276 |
| () [bar] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
277 |
o 15:b006cf317e0e added foo to x |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
278 |
| () [bar] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
279 |
o 10:4ae4427ee9f8 added d |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
280 |
| () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
281 |
o 9:917281f93fcb added c |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
282 |
| () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
283 |
o 8:171614c9a791 added b |
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
284 |
| () [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
285 |
o 1:c7586e2a9264 added a |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
286 |
| () [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
287 |
o 0:8fa14d15e168 added hgignore |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
288 |
() [default] draft |
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
289 |
|
3807
03ccdc753582
evolve: commit the transaction if conflicts occur while merging content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3806
diff
changeset
|
290 |
$ hg obslog -r . --all |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
291 |
@ 7bbcf24ddecf (21) added y |
3809
f06ff8fee2f6
evolvestate: store info about relocation while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3807
diff
changeset
|
292 |
|\ |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
293 |
x | 48f745db3f53 (20) added y |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
294 |
| | rewritten(branch, content) as 7bbcf24ddecf using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
3807
03ccdc753582
evolve: commit the transaction if conflicts occur while merging content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3806
diff
changeset
|
295 |
| | |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
296 |
| x b4575ed6fcfc (19) added y |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
297 |
| | rewritten(content) as 7bbcf24ddecf using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
3809
f06ff8fee2f6
evolvestate: store info about relocation while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3807
diff
changeset
|
298 |
| | |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
299 |
x | 2a9f6ccbdeba (17) added y |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
300 |
| | rewritten(parent) as 48f745db3f53 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) |
3809
f06ff8fee2f6
evolvestate: store info about relocation while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3807
diff
changeset
|
301 |
| | |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
302 |
| x 96b677f01b81 (18) added y |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
303 |
|/ rewritten(content) as b4575ed6fcfc using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
3807
03ccdc753582
evolve: commit the transaction if conflicts occur while merging content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3806
diff
changeset
|
304 |
| |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
305 |
x fc6ad2bac162 (16) added y |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
306 |
rewritten(content) as 2a9f6ccbdeba using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
307 |
rewritten(branch, parent) as 96b677f01b81 using rebase by test (Thu Jan 01 00:00:00 1970 +0000) |
3807
03ccdc753582
evolve: commit the transaction if conflicts occur while merging content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3806
diff
changeset
|
308 |
|
03ccdc753582
evolve: commit the transaction if conflicts occur while merging content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3806
diff
changeset
|
309 |
|
3806
99469bb3854e
tests: add tests for resolving content-divergence when different parents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3805
diff
changeset
|
310 |
checking that relocated commit is there |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
311 |
$ hg exp 48f745db3f53 --hidden |
3807
03ccdc753582
evolve: commit the transaction if conflicts occur while merging content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3806
diff
changeset
|
312 |
# HG changeset patch |
03ccdc753582
evolve: commit the transaction if conflicts occur while merging content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3806
diff
changeset
|
313 |
# User test |
03ccdc753582
evolve: commit the transaction if conflicts occur while merging content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3806
diff
changeset
|
314 |
# Date 0 0 |
03ccdc753582
evolve: commit the transaction if conflicts occur while merging content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3806
diff
changeset
|
315 |
# Thu Jan 01 00:00:00 1970 +0000 |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
316 |
# Node ID 48f745db3f5300363ca248b9aeab20ff2a55fbb3 |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
317 |
# Parent b006cf317e0ed16dbe786c439577475580f645f1 |
3807
03ccdc753582
evolve: commit the transaction if conflicts occur while merging content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3806
diff
changeset
|
318 |
added y |
03ccdc753582
evolve: commit the transaction if conflicts occur while merging content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3806
diff
changeset
|
319 |
|
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
320 |
diff -r b006cf317e0e -r 48f745db3f53 y |
3807
03ccdc753582
evolve: commit the transaction if conflicts occur while merging content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3806
diff
changeset
|
321 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
03ccdc753582
evolve: commit the transaction if conflicts occur while merging content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3806
diff
changeset
|
322 |
+++ b/y Thu Jan 01 00:00:00 1970 +0000 |
03ccdc753582
evolve: commit the transaction if conflicts occur while merging content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3806
diff
changeset
|
323 |
@@ -0,0 +1,1 @@ |
03ccdc753582
evolve: commit the transaction if conflicts occur while merging content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3806
diff
changeset
|
324 |
+bar |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
325 |
|
4406
450487b4e1a3
tests: update the title of a test as it's not what it says
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4181
diff
changeset
|
326 |
Testing when the relocation will result in conflicts and merging also: |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
327 |
---------------------------------------------------------------------- |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
328 |
|
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
329 |
$ hg glog |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
330 |
@ 21:7bbcf24ddecf added y |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
331 |
| () [bar] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
332 |
o 15:b006cf317e0e added foo to x |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
333 |
| () [bar] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
334 |
o 10:4ae4427ee9f8 added d |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
335 |
| () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
336 |
o 9:917281f93fcb added c |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
337 |
| () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
338 |
o 8:171614c9a791 added b |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
339 |
| () [default] draft |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
340 |
o 1:c7586e2a9264 added a |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
341 |
| () [default] draft |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
342 |
o 0:8fa14d15e168 added hgignore |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
343 |
() [default] draft |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
344 |
|
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
345 |
$ hg up .^^^^ |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
346 |
0 files updated, 0 files merged, 4 files removed, 0 files unresolved |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
347 |
|
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
348 |
$ echo z > z |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
349 |
$ hg ci -Aqm "added z" |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
350 |
$ hg glog -r . |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
351 |
@ 22:daf1de08f3b0 added z |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
352 |
| () [default] draft |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
353 |
~ |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
354 |
|
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
355 |
$ echo foo > y |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
356 |
$ hg add y |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
357 |
$ hg amend |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
358 |
|
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
359 |
$ hg up daf1de08f3b0 --hidden |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
360 |
0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
361 |
updated to hidden changeset daf1de08f3b0 |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
362 |
(hidden revision 'daf1de08f3b0' was rewritten as: 3f7a1f693080) |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
363 |
working directory parent is obsolete! (daf1de08f3b0) |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
364 |
(use 'hg evolve' to update to its successor: 3f7a1f693080) |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
365 |
$ hg rebase -r . -d 7bbcf24ddecf --config experimental.evolution.allowdivergence=True |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
366 |
rebasing 22:daf1de08f3b0 "added z" |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
367 |
2 new content-divergent changesets |
3811
3273b178c202
evolve: store the evolvestate if relocation results in conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3810
diff
changeset
|
368 |
$ echo bar > z |
3273b178c202
evolve: store the evolvestate if relocation results in conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3810
diff
changeset
|
369 |
$ hg amend |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
370 |
|
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
371 |
$ hg glog |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
372 |
@ 25:53242575ffa9 added z |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
373 |
| () [bar] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
374 |
| * 23:3f7a1f693080 added z |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
375 |
| | () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
376 |
o | 21:7bbcf24ddecf added y |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
377 |
| | () [bar] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
378 |
o | 15:b006cf317e0e added foo to x |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
379 |
| | () [bar] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
380 |
o | 10:4ae4427ee9f8 added d |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
381 |
| | () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
382 |
o | 9:917281f93fcb added c |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
383 |
|/ () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
384 |
o 8:171614c9a791 added b |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
385 |
| () [default] draft |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
386 |
o 1:c7586e2a9264 added a |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
387 |
| () [default] draft |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
388 |
o 0:8fa14d15e168 added hgignore |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
389 |
() [default] draft |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
390 |
|
4407
7fd0cbf6190d
evolve: change in a test which demonstrate divergence resolution can break
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
4406
diff
changeset
|
391 |
$ hg evolve --content-divergent --any |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
392 |
merge:[25] added z |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
393 |
with: [23] added z |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
394 |
base: [22] added z |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
395 |
rebasing "other" content-divergent changeset 3f7a1f693080 on 7bbcf24ddecf |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
396 |
merging y |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
397 |
warning: conflicts while merging y! (edit, then use 'hg resolve --mark') |
3853
796334340cad
evolve: make one missed error to align other error messages
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3852
diff
changeset
|
398 |
fix conflicts and see `hg help evolve.interrupted` |
796334340cad
evolve: make one missed error to align other error messages
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3852
diff
changeset
|
399 |
[1] |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
400 |
|
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
401 |
$ hg diff |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
402 |
diff -r 7bbcf24ddecf y |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
403 |
--- a/y Thu Jan 01 00:00:00 1970 +0000 |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
404 |
+++ b/y Thu Jan 01 00:00:00 1970 +0000 |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
405 |
@@ -1,1 +1,5 @@ |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
406 |
+<<<<<<< destination: 7bbcf24ddecf bar - test: added y |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
407 |
watbar |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
408 |
+======= |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
409 |
+foo |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
410 |
+>>>>>>> evolving: 3f7a1f693080 - test: added z |
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
411 |
diff -r 7bbcf24ddecf z |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
412 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
413 |
+++ b/z Thu Jan 01 00:00:00 1970 +0000 |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
414 |
@@ -0,0 +1,1 @@ |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
415 |
+z |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
416 |
|
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
417 |
$ echo foo > y |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
418 |
$ hg resolve -m |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
419 |
(no more unresolved files) |
3811
3273b178c202
evolve: store the evolvestate if relocation results in conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3810
diff
changeset
|
420 |
continue: hg evolve --continue |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
421 |
|
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
422 |
$ hg evolve --continue |
3881
9cf45b94f977
evolve: continue conflicted relocation content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3853
diff
changeset
|
423 |
evolving 23:3f7a1f693080 "added z" |
9cf45b94f977
evolve: continue conflicted relocation content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3853
diff
changeset
|
424 |
updating to "local" side of the conflict: 53242575ffa9 |
9cf45b94f977
evolve: continue conflicted relocation content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3853
diff
changeset
|
425 |
merging "other" content-divergent changeset 'cdb0643c69fc' |
3882
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
426 |
merging y |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
427 |
warning: conflicts while merging y! (edit, then use 'hg resolve --mark') |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
428 |
0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
429 |
fix conflicts and see `hg help evolve.interrupted` |
3881
9cf45b94f977
evolve: continue conflicted relocation content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3853
diff
changeset
|
430 |
[1] |
9cf45b94f977
evolve: continue conflicted relocation content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3853
diff
changeset
|
431 |
|
9cf45b94f977
evolve: continue conflicted relocation content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3853
diff
changeset
|
432 |
$ hg diff |
3882
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
433 |
diff -r 53242575ffa9 y |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
434 |
--- a/y Thu Jan 01 00:00:00 1970 +0000 |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
435 |
+++ b/y Thu Jan 01 00:00:00 1970 +0000 |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
436 |
@@ -1,1 +1,5 @@ |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
437 |
+<<<<<<< local: 53242575ffa9 bar - test: added z |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
438 |
watbar |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
439 |
+======= |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
440 |
+foo |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
441 |
+>>>>>>> other: cdb0643c69fc - test: added z |
3881
9cf45b94f977
evolve: continue conflicted relocation content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3853
diff
changeset
|
442 |
|
9cf45b94f977
evolve: continue conflicted relocation content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3853
diff
changeset
|
443 |
$ echo foo > y |
9cf45b94f977
evolve: continue conflicted relocation content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3853
diff
changeset
|
444 |
$ hg resolve -m |
3882
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
445 |
(no more unresolved files) |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
446 |
continue: hg evolve --continue |
3881
9cf45b94f977
evolve: continue conflicted relocation content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3853
diff
changeset
|
447 |
$ hg evolve --continue |
3882
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
448 |
working directory is now at 6fc7d9682de6 |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
449 |
|
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
450 |
$ hg glog |
3882
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
451 |
@ 27:6fc7d9682de6 added z |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
452 |
| () [bar] draft |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
453 |
o 21:7bbcf24ddecf added y |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
454 |
| () [bar] draft |
3882
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
455 |
o 15:b006cf317e0e added foo to x |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
456 |
| () [bar] draft |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
457 |
o 10:4ae4427ee9f8 added d |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
458 |
| () [default] draft |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
459 |
o 9:917281f93fcb added c |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
460 |
| () [default] draft |
3846
f9dad99a90d5
evolve: create a new commit instead of amending one of the divergents
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3845
diff
changeset
|
461 |
o 8:171614c9a791 added b |
3810
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
462 |
| () [default] draft |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
463 |
o 1:c7586e2a9264 added a |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
464 |
| () [default] draft |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
465 |
o 0:8fa14d15e168 added hgignore |
04fe01b0c0d0
tests: add more test of resolution of content-divergent changesets
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3809
diff
changeset
|
466 |
() [default] draft |
3811
3273b178c202
evolve: store the evolvestate if relocation results in conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3810
diff
changeset
|
467 |
|
3273b178c202
evolve: store the evolvestate if relocation results in conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3810
diff
changeset
|
468 |
$ hg exp |
3273b178c202
evolve: store the evolvestate if relocation results in conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3810
diff
changeset
|
469 |
# HG changeset patch |
3273b178c202
evolve: store the evolvestate if relocation results in conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3810
diff
changeset
|
470 |
# User test |
3273b178c202
evolve: store the evolvestate if relocation results in conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3810
diff
changeset
|
471 |
# Date 0 0 |
3273b178c202
evolve: store the evolvestate if relocation results in conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3810
diff
changeset
|
472 |
# Thu Jan 01 00:00:00 1970 +0000 |
3881
9cf45b94f977
evolve: continue conflicted relocation content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3853
diff
changeset
|
473 |
# Branch bar |
3882
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
474 |
# Node ID 6fc7d9682de6e3bee6c8b1266b756ed7d522b7e4 |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
475 |
# Parent 7bbcf24ddecfe97d7c2ac6fa8c07c155c8fda47b |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
476 |
added z |
3811
3273b178c202
evolve: store the evolvestate if relocation results in conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3810
diff
changeset
|
477 |
|
3882
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
478 |
diff -r 7bbcf24ddecf -r 6fc7d9682de6 y |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
479 |
--- a/y Thu Jan 01 00:00:00 1970 +0000 |
3811
3273b178c202
evolve: store the evolvestate if relocation results in conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3810
diff
changeset
|
480 |
+++ b/y Thu Jan 01 00:00:00 1970 +0000 |
3882
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
481 |
@@ -1,1 +1,1 @@ |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
482 |
-watbar |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
483 |
+foo |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
484 |
diff -r 7bbcf24ddecf -r 6fc7d9682de6 z |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
485 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
486 |
+++ b/z Thu Jan 01 00:00:00 1970 +0000 |
3811
3273b178c202
evolve: store the evolvestate if relocation results in conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3810
diff
changeset
|
487 |
@@ -0,0 +1,1 @@ |
3882
55b8c7e7e352
compat: temporarily move copies fix to compat.py
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3881
diff
changeset
|
488 |
+bar |
3844
48fbccfd1dff
tests: add test of resolution of content-divergent stacks
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3842
diff
changeset
|
489 |
|
48fbccfd1dff
tests: add test of resolution of content-divergent stacks
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3842
diff
changeset
|
490 |
$ cd .. |