##// END OF EJS Templates
update: remove redundant and misplaced merge tests...
Martin von Zweigbergk -
r23472:48cdf90f default
parent child Browse files
Show More
@@ -1,241 +1,191 b''
1 $ HGMERGE=true; export HGMERGE
1 $ HGMERGE=true; export HGMERGE
2
2
3 $ hg init r1
3 $ hg init r1
4 $ cd r1
4 $ cd r1
5 $ echo a > a
5 $ echo a > a
6 $ hg addremove
6 $ hg addremove
7 adding a
7 adding a
8 $ hg commit -m "1"
8 $ hg commit -m "1"
9
9
10 $ hg clone . ../r2
10 $ hg clone . ../r2
11 updating to branch default
11 updating to branch default
12 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
12 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
13 $ cd ../r2
13 $ cd ../r2
14 $ hg up
14 $ hg up
15 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
15 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
16 $ echo abc > a
16 $ echo abc > a
17 $ hg diff --nodates
17 $ hg diff --nodates
18 diff -r c19d34741b0a a
18 diff -r c19d34741b0a a
19 --- a/a
19 --- a/a
20 +++ b/a
20 +++ b/a
21 @@ -1,1 +1,1 @@
21 @@ -1,1 +1,1 @@
22 -a
22 -a
23 +abc
23 +abc
24
24
25 $ cd ../r1
25 $ cd ../r1
26 $ echo b > b
26 $ echo b > b
27 $ echo a2 > a
27 $ echo a2 > a
28 $ hg addremove
28 $ hg addremove
29 adding b
29 adding b
30 $ hg commit -m "2"
30 $ hg commit -m "2"
31
31
32 $ cd ../r2
32 $ cd ../r2
33 $ hg -q pull ../r1
33 $ hg -q pull ../r1
34 $ hg status
34 $ hg status
35 M a
35 M a
36 $ hg parents
36 $ hg parents
37 changeset: 0:c19d34741b0a
37 changeset: 0:c19d34741b0a
38 user: test
38 user: test
39 date: Thu Jan 01 00:00:00 1970 +0000
39 date: Thu Jan 01 00:00:00 1970 +0000
40 summary: 1
40 summary: 1
41
41
42 $ hg --debug up
42 $ hg --debug up
43 searching for copies back to rev 1
43 searching for copies back to rev 1
44 unmatched files in other:
44 unmatched files in other:
45 b
45 b
46 resolving manifests
46 resolving manifests
47 branchmerge: False, force: False, partial: False
47 branchmerge: False, force: False, partial: False
48 ancestor: c19d34741b0a, local: c19d34741b0a+, remote: 1e71731e6fbb
48 ancestor: c19d34741b0a, local: c19d34741b0a+, remote: 1e71731e6fbb
49 preserving a for resolve of a
49 preserving a for resolve of a
50 b: remote created -> g
50 b: remote created -> g
51 getting b
51 getting b
52 updating: b 1/2 files (50.00%)
52 updating: b 1/2 files (50.00%)
53 a: versions differ -> m
53 a: versions differ -> m
54 updating: a 2/2 files (100.00%)
54 updating: a 2/2 files (100.00%)
55 picked tool 'true' for a (binary False symlink False)
55 picked tool 'true' for a (binary False symlink False)
56 merging a
56 merging a
57 my a@c19d34741b0a+ other a@1e71731e6fbb ancestor a@c19d34741b0a
57 my a@c19d34741b0a+ other a@1e71731e6fbb ancestor a@c19d34741b0a
58 1 files updated, 1 files merged, 0 files removed, 0 files unresolved
58 1 files updated, 1 files merged, 0 files removed, 0 files unresolved
59 $ hg parents
59 $ hg parents
60 changeset: 1:1e71731e6fbb
60 changeset: 1:1e71731e6fbb
61 tag: tip
61 tag: tip
62 user: test
62 user: test
63 date: Thu Jan 01 00:00:00 1970 +0000
63 date: Thu Jan 01 00:00:00 1970 +0000
64 summary: 2
64 summary: 2
65
65
66 $ hg --debug up 0
66 $ hg --debug up 0
67 resolving manifests
67 resolving manifests
68 branchmerge: False, force: False, partial: False
68 branchmerge: False, force: False, partial: False
69 ancestor: 1e71731e6fbb, local: 1e71731e6fbb+, remote: c19d34741b0a
69 ancestor: 1e71731e6fbb, local: 1e71731e6fbb+, remote: c19d34741b0a
70 preserving a for resolve of a
70 preserving a for resolve of a
71 b: other deleted -> r
71 b: other deleted -> r
72 removing b
72 removing b
73 updating: b 1/2 files (50.00%)
73 updating: b 1/2 files (50.00%)
74 a: versions differ -> m
74 a: versions differ -> m
75 updating: a 2/2 files (100.00%)
75 updating: a 2/2 files (100.00%)
76 picked tool 'true' for a (binary False symlink False)
76 picked tool 'true' for a (binary False symlink False)
77 merging a
77 merging a
78 my a@1e71731e6fbb+ other a@c19d34741b0a ancestor a@1e71731e6fbb
78 my a@1e71731e6fbb+ other a@c19d34741b0a ancestor a@1e71731e6fbb
79 0 files updated, 1 files merged, 1 files removed, 0 files unresolved
79 0 files updated, 1 files merged, 1 files removed, 0 files unresolved
80 $ hg parents
80 $ hg parents
81 changeset: 0:c19d34741b0a
81 changeset: 0:c19d34741b0a
82 user: test
82 user: test
83 date: Thu Jan 01 00:00:00 1970 +0000
83 date: Thu Jan 01 00:00:00 1970 +0000
84 summary: 1
84 summary: 1
85
85
86 $ hg --debug merge
87 abort: nothing to merge
88 (use 'hg update' instead)
89 [255]
90 $ hg parents
86 $ hg parents
91 changeset: 0:c19d34741b0a
87 changeset: 0:c19d34741b0a
92 user: test
88 user: test
93 date: Thu Jan 01 00:00:00 1970 +0000
89 date: Thu Jan 01 00:00:00 1970 +0000
94 summary: 1
90 summary: 1
95
91
96 $ hg --debug up
92 $ hg --debug up
97 searching for copies back to rev 1
93 searching for copies back to rev 1
98 unmatched files in other:
94 unmatched files in other:
99 b
95 b
100 resolving manifests
96 resolving manifests
101 branchmerge: False, force: False, partial: False
97 branchmerge: False, force: False, partial: False
102 ancestor: c19d34741b0a, local: c19d34741b0a+, remote: 1e71731e6fbb
98 ancestor: c19d34741b0a, local: c19d34741b0a+, remote: 1e71731e6fbb
103 preserving a for resolve of a
99 preserving a for resolve of a
104 b: remote created -> g
100 b: remote created -> g
105 getting b
101 getting b
106 updating: b 1/2 files (50.00%)
102 updating: b 1/2 files (50.00%)
107 a: versions differ -> m
103 a: versions differ -> m
108 updating: a 2/2 files (100.00%)
104 updating: a 2/2 files (100.00%)
109 picked tool 'true' for a (binary False symlink False)
105 picked tool 'true' for a (binary False symlink False)
110 merging a
106 merging a
111 my a@c19d34741b0a+ other a@1e71731e6fbb ancestor a@c19d34741b0a
107 my a@c19d34741b0a+ other a@1e71731e6fbb ancestor a@c19d34741b0a
112 1 files updated, 1 files merged, 0 files removed, 0 files unresolved
108 1 files updated, 1 files merged, 0 files removed, 0 files unresolved
113 $ hg parents
109 $ hg parents
114 changeset: 1:1e71731e6fbb
110 changeset: 1:1e71731e6fbb
115 tag: tip
111 tag: tip
116 user: test
112 user: test
117 date: Thu Jan 01 00:00:00 1970 +0000
113 date: Thu Jan 01 00:00:00 1970 +0000
118 summary: 2
114 summary: 2
119
115
120 $ hg -v history
116 $ hg -v history
121 changeset: 1:1e71731e6fbb
117 changeset: 1:1e71731e6fbb
122 tag: tip
118 tag: tip
123 user: test
119 user: test
124 date: Thu Jan 01 00:00:00 1970 +0000
120 date: Thu Jan 01 00:00:00 1970 +0000
125 files: a b
121 files: a b
126 description:
122 description:
127 2
123 2
128
124
129
125
130 changeset: 0:c19d34741b0a
126 changeset: 0:c19d34741b0a
131 user: test
127 user: test
132 date: Thu Jan 01 00:00:00 1970 +0000
128 date: Thu Jan 01 00:00:00 1970 +0000
133 files: a
129 files: a
134 description:
130 description:
135 1
131 1
136
132
137
133
138 $ hg diff --nodates
134 $ hg diff --nodates
139 diff -r 1e71731e6fbb a
135 diff -r 1e71731e6fbb a
140 --- a/a
136 --- a/a
141 +++ b/a
137 +++ b/a
142 @@ -1,1 +1,1 @@
138 @@ -1,1 +1,1 @@
143 -a2
139 -a2
144 +abc
140 +abc
145
141
146
142
147 create a second head
143 create a second head
148
144
149 $ cd ../r1
145 $ cd ../r1
150 $ hg up 0
146 $ hg up 0
151 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
147 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
152 $ echo b2 > b
148 $ echo b2 > b
153 $ echo a3 > a
149 $ echo a3 > a
154 $ hg addremove
150 $ hg addremove
155 adding b
151 adding b
156 $ hg commit -m "3"
152 $ hg commit -m "3"
157 created new head
153 created new head
158
154
159 $ cd ../r2
155 $ cd ../r2
160 $ hg -q pull ../r1
156 $ hg -q pull ../r1
161 $ hg status
157 $ hg status
162 M a
158 M a
163 $ hg parents
159 $ hg parents
164 changeset: 1:1e71731e6fbb
160 changeset: 1:1e71731e6fbb
165 user: test
161 user: test
166 date: Thu Jan 01 00:00:00 1970 +0000
162 date: Thu Jan 01 00:00:00 1970 +0000
167 summary: 2
163 summary: 2
168
164
169 $ hg --debug up
165 $ hg --debug up
170 abort: uncommitted changes
166 abort: uncommitted changes
171 (commit and merge, or update --clean to discard changes)
167 (commit and merge, or update --clean to discard changes)
172 [255]
168 [255]
173 $ hg --debug merge
174 abort: uncommitted changes
175 (use 'hg status' to list changes)
176 [255]
177 $ hg --debug merge -f
178 searching for copies back to rev 1
179 unmatched files new in both:
180 b
181 resolving manifests
182 branchmerge: True, force: True, partial: False
183 ancestor: c19d34741b0a, local: 1e71731e6fbb+, remote: 83c51d0caff4
184 preserving a for resolve of a
185 preserving b for resolve of b
186 a: versions differ -> m
187 updating: a 1/2 files (50.00%)
188 picked tool 'true' for a (binary False symlink False)
189 merging a
190 my a@1e71731e6fbb+ other a@83c51d0caff4 ancestor a@c19d34741b0a
191 b: both created -> m
192 updating: b 2/2 files (100.00%)
193 picked tool 'true' for b (binary False symlink False)
194 merging b
195 my b@1e71731e6fbb+ other b@83c51d0caff4 ancestor b@000000000000
196 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
197 (branch merge, don't forget to commit)
198 $ hg parents
199 changeset: 1:1e71731e6fbb
200 user: test
201 date: Thu Jan 01 00:00:00 1970 +0000
202 summary: 2
203
204 changeset: 2:83c51d0caff4
205 tag: tip
206 parent: 0:c19d34741b0a
207 user: test
208 date: Thu Jan 01 00:00:00 1970 +0000
209 summary: 3
210
211 $ hg diff --nodates
212 diff -r 1e71731e6fbb a
213 --- a/a
214 +++ b/a
215 @@ -1,1 +1,1 @@
216 -a2
217 +abc
218
219
169
220 test a local add
170 test a local add
221
171
222 $ cd ..
172 $ cd ..
223 $ hg init a
173 $ hg init a
224 $ hg init b
174 $ hg init b
225 $ echo a > a/a
175 $ echo a > a/a
226 $ echo a > b/a
176 $ echo a > b/a
227 $ hg --cwd a commit -A -m a
177 $ hg --cwd a commit -A -m a
228 adding a
178 adding a
229 $ cd b
179 $ cd b
230 $ hg add a
180 $ hg add a
231 $ hg pull -u ../a
181 $ hg pull -u ../a
232 pulling from ../a
182 pulling from ../a
233 requesting all changes
183 requesting all changes
234 adding changesets
184 adding changesets
235 adding manifests
185 adding manifests
236 adding file changes
186 adding file changes
237 added 1 changesets with 1 changes to 1 files
187 added 1 changesets with 1 changes to 1 files
238 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
188 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
239 $ hg st
189 $ hg st
240
190
241 $ cd ..
191 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now