| 1 |
# A B |
| 2 |
# |
| 3 |
# 3 4 3 |
| 4 |
# |\/| |\ |
| 5 |
# |/\| | \ |
| 6 |
# 1 2 1 2 |
| 7 |
# \ / \ / |
| 8 |
# 0 0 |
| 9 |
# |
| 10 |
# if the result of the merge of 1 and 2 |
| 11 |
# is the same in 3 and 4, no new manifest |
| 12 |
# will be created and the manifest group |
| 13 |
# will be empty during the pull |
| 14 |
# |
| 15 |
# (plus we test a failure where outgoing |
| 16 |
# wrongly reported the number of csets) |
| 17 |
|
| 18 |
$ hg init a |
| 19 |
$ cd a |
| 20 |
$ touch init |
| 21 |
$ hg ci -A -m 0 |
| 22 |
adding init |
| 23 |
$ touch x y |
| 24 |
$ hg ci -A -m 1 |
| 25 |
adding x |
| 26 |
adding y |
| 27 |
|
| 28 |
$ hg update 0 |
| 29 |
0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
| 30 |
$ touch x y |
| 31 |
$ hg ci -A -m 2 |
| 32 |
adding x |
| 33 |
adding y |
| 34 |
created new head |
| 35 |
|
| 36 |
$ hg merge 1 |
| 37 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 38 |
(branch merge, don't forget to commit) |
| 39 |
$ hg ci -A -m m1 |
| 40 |
|
| 41 |
$ hg update -C 1 |
| 42 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 43 |
$ hg merge 2 |
| 44 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 45 |
(branch merge, don't forget to commit) |
| 46 |
$ hg ci -A -m m2 |
| 47 |
created new head |
| 48 |
|
| 49 |
$ cd .. |
| 50 |
|
| 51 |
$ hg clone -r 3 a b |
| 52 |
adding changesets |
| 53 |
adding manifests |
| 54 |
adding file changes |
| 55 |
added 4 changesets with 3 changes to 3 files |
| 56 |
new changesets 5fcb73622933:d15a0c284984 |
| 57 |
updating to branch default |
| 58 |
3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 59 |
|
| 60 |
$ hg clone -r 4 a c |
| 61 |
adding changesets |
| 62 |
adding manifests |
| 63 |
adding file changes |
| 64 |
added 4 changesets with 3 changes to 3 files |
| 65 |
new changesets 5fcb73622933:1ec3c74fc0e0 |
| 66 |
updating to branch default |
| 67 |
3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 68 |
|
| 69 |
$ hg -R a outgoing b |
| 70 |
comparing with b |
| 71 |
searching for changes |
| 72 |
changeset: 4:1ec3c74fc0e0 |
| 73 |
tag: tip |
| 74 |
parent: 1:79f9e10cd04e |
| 75 |
parent: 2:8e1bb01c1a24 |
| 76 |
user: test |
| 77 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 78 |
summary: m2 |
| 79 |
|
| 80 |
$ hg -R a outgoing c |
| 81 |
comparing with c |
| 82 |
searching for changes |
| 83 |
changeset: 3:d15a0c284984 |
| 84 |
parent: 2:8e1bb01c1a24 |
| 85 |
parent: 1:79f9e10cd04e |
| 86 |
user: test |
| 87 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 88 |
summary: m1 |
| 89 |
|
| 90 |
$ hg -R b outgoing c |
| 91 |
comparing with c |
| 92 |
searching for changes |
| 93 |
changeset: 3:d15a0c284984 |
| 94 |
tag: tip |
| 95 |
parent: 2:8e1bb01c1a24 |
| 96 |
parent: 1:79f9e10cd04e |
| 97 |
user: test |
| 98 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 99 |
summary: m1 |
| 100 |
|
| 101 |
$ hg -R c outgoing b |
| 102 |
comparing with b |
| 103 |
searching for changes |
| 104 |
changeset: 3:1ec3c74fc0e0 |
| 105 |
tag: tip |
| 106 |
parent: 1:79f9e10cd04e |
| 107 |
parent: 2:8e1bb01c1a24 |
| 108 |
user: test |
| 109 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 110 |
summary: m2 |
| 111 |
|
| 112 |
|
| 113 |
$ hg -R b pull a |
| 114 |
pulling from a |
| 115 |
searching for changes |
| 116 |
adding changesets |
| 117 |
adding manifests |
| 118 |
adding file changes |
| 119 |
added 1 changesets with 0 changes to 0 files (+1 heads) |
| 120 |
new changesets 1ec3c74fc0e0 |
| 121 |
(run 'hg heads' to see heads, 'hg merge' to merge) |
| 122 |
|
| 123 |
$ hg -R c pull a |
| 124 |
pulling from a |
| 125 |
searching for changes |
| 126 |
adding changesets |
| 127 |
adding manifests |
| 128 |
adding file changes |
| 129 |
added 1 changesets with 0 changes to 0 files (+1 heads) |
| 130 |
new changesets d15a0c284984 |
| 131 |
(run 'hg heads' to see heads, 'hg merge' to merge) |