##// END OF EJS Templates
tests: delete unused function in test-rename-merge2.t...
Martin von Zweigbergk -
r42328:344066b5 default
parent child Browse files
Show More
@@ -1,1071 +1,1070 b''
1
1
2 $ mkdir -p t
2 $ mkdir -p t
3 $ cd t
3 $ cd t
4 $ cat <<EOF > merge
4 $ cat <<EOF > merge
5 > import sys, os
5 > import sys, os
6 > f = open(sys.argv[1], "w")
6 > f = open(sys.argv[1], "w")
7 > f.write("merge %s %s %s" % (sys.argv[1], sys.argv[2], sys.argv[3]))
7 > f.write("merge %s %s %s" % (sys.argv[1], sys.argv[2], sys.argv[3]))
8 > f.close()
8 > f.close()
9 > EOF
9 > EOF
10
10
11 perform a test merge with possible renaming
11 perform a test merge with possible renaming
12 args:
12 args:
13 $1 = action in local branch
13 $1 = action in local branch
14 $2 = action in remote branch
14 $2 = action in remote branch
15 $3 = action in working dir
15 $3 = action in working dir
16 $4 = expected result
16 $4 = expected result
17
17
18 $ tm()
18 $ tm()
19 > {
19 > {
20 > hg init t
20 > hg init t
21 > cd t
21 > cd t
22 > echo "[merge]" >> .hg/hgrc
22 > echo "[merge]" >> .hg/hgrc
23 > echo "followcopies = 1" >> .hg/hgrc
23 > echo "followcopies = 1" >> .hg/hgrc
24 >
24 >
25 > # base
25 > # base
26 > echo base > a
26 > echo base > a
27 > echo base > rev # used to force commits
27 > echo base > rev # used to force commits
28 > hg add a rev
28 > hg add a rev
29 > hg ci -m "base"
29 > hg ci -m "base"
30 >
30 >
31 > # remote
31 > # remote
32 > echo remote > rev
32 > echo remote > rev
33 > if [ "$2" != "" ] ; then $2 ; fi
33 > if [ "$2" != "" ] ; then $2 ; fi
34 > hg ci -m "remote"
34 > hg ci -m "remote"
35 >
35 >
36 > # local
36 > # local
37 > hg co -q 0
37 > hg co -q 0
38 > echo local > rev
38 > echo local > rev
39 > if [ "$1" != "" ] ; then $1 ; fi
39 > if [ "$1" != "" ] ; then $1 ; fi
40 > hg ci -m "local"
40 > hg ci -m "local"
41 >
41 >
42 > # working dir
42 > # working dir
43 > echo local > rev
43 > echo local > rev
44 > if [ "$3" != "" ] ; then $3 ; fi
44 > if [ "$3" != "" ] ; then $3 ; fi
45 >
45 >
46 > # merge
46 > # merge
47 > echo "--------------"
47 > echo "--------------"
48 > echo "test L:$1 R:$2 W:$3 - $4"
48 > echo "test L:$1 R:$2 W:$3 - $4"
49 > echo "--------------"
49 > echo "--------------"
50 > hg merge -y --debug --traceback --tool="\"$PYTHON\" ../merge"
50 > hg merge -y --debug --traceback --tool="\"$PYTHON\" ../merge"
51 >
51 >
52 > echo "--------------"
52 > echo "--------------"
53 > hg status -camC -X rev
53 > hg status -camC -X rev
54 >
54 >
55 > hg ci -m "merge"
55 > hg ci -m "merge"
56 >
56 >
57 > echo "--------------"
57 > echo "--------------"
58 > echo
58 > echo
59 >
59 >
60 > cd ..
60 > cd ..
61 > rm -r t
61 > rm -r t
62 > }
62 > }
63 $ up() {
63 $ up() {
64 > cp rev $1
64 > cp rev $1
65 > hg add $1 2> /dev/null
65 > hg add $1 2> /dev/null
66 > if [ "$2" != "" ] ; then
66 > if [ "$2" != "" ] ; then
67 > cp rev $2
67 > cp rev $2
68 > hg add $2 2> /dev/null
68 > hg add $2 2> /dev/null
69 > fi
69 > fi
70 > }
70 > }
71 $ uc() { up $1; hg cp $1 $2; } # update + copy
72 $ um() { up $1; hg mv $1 $2; }
71 $ um() { up $1; hg mv $1 $2; }
73 $ nc() { hg cp $1 $2; } # just copy
72 $ nc() { hg cp $1 $2; } # just copy
74 $ nm() { hg mv $1 $2; } # just move
73 $ nm() { hg mv $1 $2; } # just move
75 $ tm "up a " "nc a b" " " "1 get local a to b"
74 $ tm "up a " "nc a b" " " "1 get local a to b"
76 created new head
75 created new head
77 --------------
76 --------------
78 test L:up a R:nc a b W: - 1 get local a to b
77 test L:up a R:nc a b W: - 1 get local a to b
79 --------------
78 --------------
80 searching for copies back to rev 1
79 searching for copies back to rev 1
81 unmatched files in other:
80 unmatched files in other:
82 b
81 b
83 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
82 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
84 src: 'a' -> dst: 'b' *
83 src: 'a' -> dst: 'b' *
85 checking for directory renames
84 checking for directory renames
86 resolving manifests
85 resolving manifests
87 branchmerge: True, force: False, partial: False
86 branchmerge: True, force: False, partial: False
88 ancestor: 924404dff337, local: e300d1c794ec+, remote: 4ce40f5aca24
87 ancestor: 924404dff337, local: e300d1c794ec+, remote: 4ce40f5aca24
89 preserving a for resolve of b
88 preserving a for resolve of b
90 preserving rev for resolve of rev
89 preserving rev for resolve of rev
91 starting 4 threads for background file closing (?)
90 starting 4 threads for background file closing (?)
92 b: remote copied from a -> m (premerge)
91 b: remote copied from a -> m (premerge)
93 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
92 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
94 merging a and b to b
93 merging a and b to b
95 my b@e300d1c794ec+ other b@4ce40f5aca24 ancestor a@924404dff337
94 my b@e300d1c794ec+ other b@4ce40f5aca24 ancestor a@924404dff337
96 premerge successful
95 premerge successful
97 rev: versions differ -> m (premerge)
96 rev: versions differ -> m (premerge)
98 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
97 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
99 merging rev
98 merging rev
100 my rev@e300d1c794ec+ other rev@4ce40f5aca24 ancestor rev@924404dff337
99 my rev@e300d1c794ec+ other rev@4ce40f5aca24 ancestor rev@924404dff337
101 rev: versions differ -> m (merge)
100 rev: versions differ -> m (merge)
102 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
101 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
103 my rev@e300d1c794ec+ other rev@4ce40f5aca24 ancestor rev@924404dff337
102 my rev@e300d1c794ec+ other rev@4ce40f5aca24 ancestor rev@924404dff337
104 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
103 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
105 merge tool returned: 0
104 merge tool returned: 0
106 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
105 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
107 (branch merge, don't forget to commit)
106 (branch merge, don't forget to commit)
108 --------------
107 --------------
109 M b
108 M b
110 a
109 a
111 C a
110 C a
112 --------------
111 --------------
113
112
114 $ tm "nc a b" "up a " " " "2 get rem change to a and b"
113 $ tm "nc a b" "up a " " " "2 get rem change to a and b"
115 created new head
114 created new head
116 --------------
115 --------------
117 test L:nc a b R:up a W: - 2 get rem change to a and b
116 test L:nc a b R:up a W: - 2 get rem change to a and b
118 --------------
117 --------------
119 searching for copies back to rev 1
118 searching for copies back to rev 1
120 unmatched files in local:
119 unmatched files in local:
121 b
120 b
122 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
121 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
123 src: 'a' -> dst: 'b' *
122 src: 'a' -> dst: 'b' *
124 checking for directory renames
123 checking for directory renames
125 resolving manifests
124 resolving manifests
126 branchmerge: True, force: False, partial: False
125 branchmerge: True, force: False, partial: False
127 ancestor: 924404dff337, local: 86a2aa42fc76+, remote: f4db7e329e71
126 ancestor: 924404dff337, local: 86a2aa42fc76+, remote: f4db7e329e71
128 preserving b for resolve of b
127 preserving b for resolve of b
129 preserving rev for resolve of rev
128 preserving rev for resolve of rev
130 a: remote is newer -> g
129 a: remote is newer -> g
131 getting a
130 getting a
132 b: local copied/moved from a -> m (premerge)
131 b: local copied/moved from a -> m (premerge)
133 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
132 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
134 merging b and a to b
133 merging b and a to b
135 my b@86a2aa42fc76+ other a@f4db7e329e71 ancestor a@924404dff337
134 my b@86a2aa42fc76+ other a@f4db7e329e71 ancestor a@924404dff337
136 premerge successful
135 premerge successful
137 rev: versions differ -> m (premerge)
136 rev: versions differ -> m (premerge)
138 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
137 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
139 merging rev
138 merging rev
140 my rev@86a2aa42fc76+ other rev@f4db7e329e71 ancestor rev@924404dff337
139 my rev@86a2aa42fc76+ other rev@f4db7e329e71 ancestor rev@924404dff337
141 rev: versions differ -> m (merge)
140 rev: versions differ -> m (merge)
142 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
141 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
143 my rev@86a2aa42fc76+ other rev@f4db7e329e71 ancestor rev@924404dff337
142 my rev@86a2aa42fc76+ other rev@f4db7e329e71 ancestor rev@924404dff337
144 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
143 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
145 merge tool returned: 0
144 merge tool returned: 0
146 1 files updated, 2 files merged, 0 files removed, 0 files unresolved
145 1 files updated, 2 files merged, 0 files removed, 0 files unresolved
147 (branch merge, don't forget to commit)
146 (branch merge, don't forget to commit)
148 --------------
147 --------------
149 M a
148 M a
150 M b
149 M b
151 a
150 a
152 --------------
151 --------------
153
152
154 $ tm "up a " "nm a b" " " "3 get local a change to b, remove a"
153 $ tm "up a " "nm a b" " " "3 get local a change to b, remove a"
155 created new head
154 created new head
156 --------------
155 --------------
157 test L:up a R:nm a b W: - 3 get local a change to b, remove a
156 test L:up a R:nm a b W: - 3 get local a change to b, remove a
158 --------------
157 --------------
159 searching for copies back to rev 1
158 searching for copies back to rev 1
160 unmatched files in other:
159 unmatched files in other:
161 b
160 b
162 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
161 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
163 src: 'a' -> dst: 'b' *
162 src: 'a' -> dst: 'b' *
164 checking for directory renames
163 checking for directory renames
165 resolving manifests
164 resolving manifests
166 branchmerge: True, force: False, partial: False
165 branchmerge: True, force: False, partial: False
167 ancestor: 924404dff337, local: e300d1c794ec+, remote: bdb19105162a
166 ancestor: 924404dff337, local: e300d1c794ec+, remote: bdb19105162a
168 preserving a for resolve of b
167 preserving a for resolve of b
169 preserving rev for resolve of rev
168 preserving rev for resolve of rev
170 removing a
169 removing a
171 starting 4 threads for background file closing (?)
170 starting 4 threads for background file closing (?)
172 b: remote moved from a -> m (premerge)
171 b: remote moved from a -> m (premerge)
173 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
172 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
174 merging a and b to b
173 merging a and b to b
175 my b@e300d1c794ec+ other b@bdb19105162a ancestor a@924404dff337
174 my b@e300d1c794ec+ other b@bdb19105162a ancestor a@924404dff337
176 premerge successful
175 premerge successful
177 rev: versions differ -> m (premerge)
176 rev: versions differ -> m (premerge)
178 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
177 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
179 merging rev
178 merging rev
180 my rev@e300d1c794ec+ other rev@bdb19105162a ancestor rev@924404dff337
179 my rev@e300d1c794ec+ other rev@bdb19105162a ancestor rev@924404dff337
181 rev: versions differ -> m (merge)
180 rev: versions differ -> m (merge)
182 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
181 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
183 my rev@e300d1c794ec+ other rev@bdb19105162a ancestor rev@924404dff337
182 my rev@e300d1c794ec+ other rev@bdb19105162a ancestor rev@924404dff337
184 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
183 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
185 merge tool returned: 0
184 merge tool returned: 0
186 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
185 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
187 (branch merge, don't forget to commit)
186 (branch merge, don't forget to commit)
188 --------------
187 --------------
189 M b
188 M b
190 a
189 a
191 --------------
190 --------------
192
191
193 $ tm "nm a b" "up a " " " "4 get remote change to b"
192 $ tm "nm a b" "up a " " " "4 get remote change to b"
194 created new head
193 created new head
195 --------------
194 --------------
196 test L:nm a b R:up a W: - 4 get remote change to b
195 test L:nm a b R:up a W: - 4 get remote change to b
197 --------------
196 --------------
198 searching for copies back to rev 1
197 searching for copies back to rev 1
199 unmatched files in local:
198 unmatched files in local:
200 b
199 b
201 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
200 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
202 src: 'a' -> dst: 'b' *
201 src: 'a' -> dst: 'b' *
203 checking for directory renames
202 checking for directory renames
204 resolving manifests
203 resolving manifests
205 branchmerge: True, force: False, partial: False
204 branchmerge: True, force: False, partial: False
206 ancestor: 924404dff337, local: 02963e448370+, remote: f4db7e329e71
205 ancestor: 924404dff337, local: 02963e448370+, remote: f4db7e329e71
207 preserving b for resolve of b
206 preserving b for resolve of b
208 preserving rev for resolve of rev
207 preserving rev for resolve of rev
209 starting 4 threads for background file closing (?)
208 starting 4 threads for background file closing (?)
210 b: local copied/moved from a -> m (premerge)
209 b: local copied/moved from a -> m (premerge)
211 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
210 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
212 merging b and a to b
211 merging b and a to b
213 my b@02963e448370+ other a@f4db7e329e71 ancestor a@924404dff337
212 my b@02963e448370+ other a@f4db7e329e71 ancestor a@924404dff337
214 premerge successful
213 premerge successful
215 rev: versions differ -> m (premerge)
214 rev: versions differ -> m (premerge)
216 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
215 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
217 merging rev
216 merging rev
218 my rev@02963e448370+ other rev@f4db7e329e71 ancestor rev@924404dff337
217 my rev@02963e448370+ other rev@f4db7e329e71 ancestor rev@924404dff337
219 rev: versions differ -> m (merge)
218 rev: versions differ -> m (merge)
220 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
219 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
221 my rev@02963e448370+ other rev@f4db7e329e71 ancestor rev@924404dff337
220 my rev@02963e448370+ other rev@f4db7e329e71 ancestor rev@924404dff337
222 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
221 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
223 merge tool returned: 0
222 merge tool returned: 0
224 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
223 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
225 (branch merge, don't forget to commit)
224 (branch merge, don't forget to commit)
226 --------------
225 --------------
227 M b
226 M b
228 a
227 a
229 --------------
228 --------------
230
229
231 $ tm " " "nc a b" " " "5 get b"
230 $ tm " " "nc a b" " " "5 get b"
232 created new head
231 created new head
233 --------------
232 --------------
234 test L: R:nc a b W: - 5 get b
233 test L: R:nc a b W: - 5 get b
235 --------------
234 --------------
236 searching for copies back to rev 1
235 searching for copies back to rev 1
237 unmatched files in other:
236 unmatched files in other:
238 b
237 b
239 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
238 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
240 src: 'a' -> dst: 'b'
239 src: 'a' -> dst: 'b'
241 checking for directory renames
240 checking for directory renames
242 resolving manifests
241 resolving manifests
243 branchmerge: True, force: False, partial: False
242 branchmerge: True, force: False, partial: False
244 ancestor: 924404dff337, local: 94b33a1b7f2d+, remote: 4ce40f5aca24
243 ancestor: 924404dff337, local: 94b33a1b7f2d+, remote: 4ce40f5aca24
245 preserving rev for resolve of rev
244 preserving rev for resolve of rev
246 b: remote created -> g
245 b: remote created -> g
247 getting b
246 getting b
248 rev: versions differ -> m (premerge)
247 rev: versions differ -> m (premerge)
249 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
248 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
250 merging rev
249 merging rev
251 my rev@94b33a1b7f2d+ other rev@4ce40f5aca24 ancestor rev@924404dff337
250 my rev@94b33a1b7f2d+ other rev@4ce40f5aca24 ancestor rev@924404dff337
252 rev: versions differ -> m (merge)
251 rev: versions differ -> m (merge)
253 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
252 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
254 my rev@94b33a1b7f2d+ other rev@4ce40f5aca24 ancestor rev@924404dff337
253 my rev@94b33a1b7f2d+ other rev@4ce40f5aca24 ancestor rev@924404dff337
255 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
254 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
256 merge tool returned: 0
255 merge tool returned: 0
257 1 files updated, 1 files merged, 0 files removed, 0 files unresolved
256 1 files updated, 1 files merged, 0 files removed, 0 files unresolved
258 (branch merge, don't forget to commit)
257 (branch merge, don't forget to commit)
259 --------------
258 --------------
260 M b
259 M b
261 C a
260 C a
262 --------------
261 --------------
263
262
264 $ tm "nc a b" " " " " "6 nothing"
263 $ tm "nc a b" " " " " "6 nothing"
265 created new head
264 created new head
266 --------------
265 --------------
267 test L:nc a b R: W: - 6 nothing
266 test L:nc a b R: W: - 6 nothing
268 --------------
267 --------------
269 searching for copies back to rev 1
268 searching for copies back to rev 1
270 unmatched files in local:
269 unmatched files in local:
271 b
270 b
272 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
271 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
273 src: 'a' -> dst: 'b'
272 src: 'a' -> dst: 'b'
274 checking for directory renames
273 checking for directory renames
275 resolving manifests
274 resolving manifests
276 branchmerge: True, force: False, partial: False
275 branchmerge: True, force: False, partial: False
277 ancestor: 924404dff337, local: 86a2aa42fc76+, remote: 97c705ade336
276 ancestor: 924404dff337, local: 86a2aa42fc76+, remote: 97c705ade336
278 preserving rev for resolve of rev
277 preserving rev for resolve of rev
279 starting 4 threads for background file closing (?)
278 starting 4 threads for background file closing (?)
280 rev: versions differ -> m (premerge)
279 rev: versions differ -> m (premerge)
281 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
280 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
282 merging rev
281 merging rev
283 my rev@86a2aa42fc76+ other rev@97c705ade336 ancestor rev@924404dff337
282 my rev@86a2aa42fc76+ other rev@97c705ade336 ancestor rev@924404dff337
284 rev: versions differ -> m (merge)
283 rev: versions differ -> m (merge)
285 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
284 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
286 my rev@86a2aa42fc76+ other rev@97c705ade336 ancestor rev@924404dff337
285 my rev@86a2aa42fc76+ other rev@97c705ade336 ancestor rev@924404dff337
287 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
286 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
288 merge tool returned: 0
287 merge tool returned: 0
289 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
288 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
290 (branch merge, don't forget to commit)
289 (branch merge, don't forget to commit)
291 --------------
290 --------------
292 C a
291 C a
293 C b
292 C b
294 --------------
293 --------------
295
294
296 $ tm " " "nm a b" " " "7 get b"
295 $ tm " " "nm a b" " " "7 get b"
297 created new head
296 created new head
298 --------------
297 --------------
299 test L: R:nm a b W: - 7 get b
298 test L: R:nm a b W: - 7 get b
300 --------------
299 --------------
301 searching for copies back to rev 1
300 searching for copies back to rev 1
302 unmatched files in other:
301 unmatched files in other:
303 b
302 b
304 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
303 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
305 src: 'a' -> dst: 'b'
304 src: 'a' -> dst: 'b'
306 checking for directory renames
305 checking for directory renames
307 resolving manifests
306 resolving manifests
308 branchmerge: True, force: False, partial: False
307 branchmerge: True, force: False, partial: False
309 ancestor: 924404dff337, local: 94b33a1b7f2d+, remote: bdb19105162a
308 ancestor: 924404dff337, local: 94b33a1b7f2d+, remote: bdb19105162a
310 preserving rev for resolve of rev
309 preserving rev for resolve of rev
311 a: other deleted -> r
310 a: other deleted -> r
312 removing a
311 removing a
313 b: remote created -> g
312 b: remote created -> g
314 getting b
313 getting b
315 rev: versions differ -> m (premerge)
314 rev: versions differ -> m (premerge)
316 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
315 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
317 merging rev
316 merging rev
318 my rev@94b33a1b7f2d+ other rev@bdb19105162a ancestor rev@924404dff337
317 my rev@94b33a1b7f2d+ other rev@bdb19105162a ancestor rev@924404dff337
319 rev: versions differ -> m (merge)
318 rev: versions differ -> m (merge)
320 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
319 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
321 my rev@94b33a1b7f2d+ other rev@bdb19105162a ancestor rev@924404dff337
320 my rev@94b33a1b7f2d+ other rev@bdb19105162a ancestor rev@924404dff337
322 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
321 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
323 merge tool returned: 0
322 merge tool returned: 0
324 1 files updated, 1 files merged, 1 files removed, 0 files unresolved
323 1 files updated, 1 files merged, 1 files removed, 0 files unresolved
325 (branch merge, don't forget to commit)
324 (branch merge, don't forget to commit)
326 --------------
325 --------------
327 M b
326 M b
328 --------------
327 --------------
329
328
330 $ tm "nm a b" " " " " "8 nothing"
329 $ tm "nm a b" " " " " "8 nothing"
331 created new head
330 created new head
332 --------------
331 --------------
333 test L:nm a b R: W: - 8 nothing
332 test L:nm a b R: W: - 8 nothing
334 --------------
333 --------------
335 searching for copies back to rev 1
334 searching for copies back to rev 1
336 unmatched files in local:
335 unmatched files in local:
337 b
336 b
338 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
337 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
339 src: 'a' -> dst: 'b'
338 src: 'a' -> dst: 'b'
340 checking for directory renames
339 checking for directory renames
341 resolving manifests
340 resolving manifests
342 branchmerge: True, force: False, partial: False
341 branchmerge: True, force: False, partial: False
343 ancestor: 924404dff337, local: 02963e448370+, remote: 97c705ade336
342 ancestor: 924404dff337, local: 02963e448370+, remote: 97c705ade336
344 preserving rev for resolve of rev
343 preserving rev for resolve of rev
345 starting 4 threads for background file closing (?)
344 starting 4 threads for background file closing (?)
346 rev: versions differ -> m (premerge)
345 rev: versions differ -> m (premerge)
347 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
346 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
348 merging rev
347 merging rev
349 my rev@02963e448370+ other rev@97c705ade336 ancestor rev@924404dff337
348 my rev@02963e448370+ other rev@97c705ade336 ancestor rev@924404dff337
350 rev: versions differ -> m (merge)
349 rev: versions differ -> m (merge)
351 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
350 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
352 my rev@02963e448370+ other rev@97c705ade336 ancestor rev@924404dff337
351 my rev@02963e448370+ other rev@97c705ade336 ancestor rev@924404dff337
353 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
352 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
354 merge tool returned: 0
353 merge tool returned: 0
355 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
354 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
356 (branch merge, don't forget to commit)
355 (branch merge, don't forget to commit)
357 --------------
356 --------------
358 C b
357 C b
359 --------------
358 --------------
360
359
361 $ tm "um a b" "um a b" " " "9 do merge with ancestor in a"
360 $ tm "um a b" "um a b" " " "9 do merge with ancestor in a"
362 created new head
361 created new head
363 --------------
362 --------------
364 test L:um a b R:um a b W: - 9 do merge with ancestor in a
363 test L:um a b R:um a b W: - 9 do merge with ancestor in a
365 --------------
364 --------------
366 searching for copies back to rev 1
365 searching for copies back to rev 1
367 unmatched files new in both:
366 unmatched files new in both:
368 b
367 b
369 resolving manifests
368 resolving manifests
370 branchmerge: True, force: False, partial: False
369 branchmerge: True, force: False, partial: False
371 ancestor: 924404dff337, local: 62e7bf090eba+, remote: 49b6d8032493
370 ancestor: 924404dff337, local: 62e7bf090eba+, remote: 49b6d8032493
372 preserving b for resolve of b
371 preserving b for resolve of b
373 preserving rev for resolve of rev
372 preserving rev for resolve of rev
374 starting 4 threads for background file closing (?)
373 starting 4 threads for background file closing (?)
375 b: both renamed from a -> m (premerge)
374 b: both renamed from a -> m (premerge)
376 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
375 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
377 merging b
376 merging b
378 my b@62e7bf090eba+ other b@49b6d8032493 ancestor a@924404dff337
377 my b@62e7bf090eba+ other b@49b6d8032493 ancestor a@924404dff337
379 rev: versions differ -> m (premerge)
378 rev: versions differ -> m (premerge)
380 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
379 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
381 merging rev
380 merging rev
382 my rev@62e7bf090eba+ other rev@49b6d8032493 ancestor rev@924404dff337
381 my rev@62e7bf090eba+ other rev@49b6d8032493 ancestor rev@924404dff337
383 b: both renamed from a -> m (merge)
382 b: both renamed from a -> m (merge)
384 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
383 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
385 my b@62e7bf090eba+ other b@49b6d8032493 ancestor a@924404dff337
384 my b@62e7bf090eba+ other b@49b6d8032493 ancestor a@924404dff337
386 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
385 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
387 merge tool returned: 0
386 merge tool returned: 0
388 rev: versions differ -> m (merge)
387 rev: versions differ -> m (merge)
389 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
388 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
390 my rev@62e7bf090eba+ other rev@49b6d8032493 ancestor rev@924404dff337
389 my rev@62e7bf090eba+ other rev@49b6d8032493 ancestor rev@924404dff337
391 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
390 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
392 merge tool returned: 0
391 merge tool returned: 0
393 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
392 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
394 (branch merge, don't forget to commit)
393 (branch merge, don't forget to commit)
395 --------------
394 --------------
396 M b
395 M b
397 --------------
396 --------------
398
397
399
398
400 m "um a c" "um x c" " " "10 do merge with no ancestor"
399 m "um a c" "um x c" " " "10 do merge with no ancestor"
401
400
402 $ tm "nm a b" "nm a c" " " "11 get c, keep b"
401 $ tm "nm a b" "nm a c" " " "11 get c, keep b"
403 created new head
402 created new head
404 --------------
403 --------------
405 test L:nm a b R:nm a c W: - 11 get c, keep b
404 test L:nm a b R:nm a c W: - 11 get c, keep b
406 --------------
405 --------------
407 searching for copies back to rev 1
406 searching for copies back to rev 1
408 unmatched files in local:
407 unmatched files in local:
409 b
408 b
410 unmatched files in other:
409 unmatched files in other:
411 c
410 c
412 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
411 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
413 src: 'a' -> dst: 'b' !
412 src: 'a' -> dst: 'b' !
414 src: 'a' -> dst: 'c' !
413 src: 'a' -> dst: 'c' !
415 checking for directory renames
414 checking for directory renames
416 resolving manifests
415 resolving manifests
417 branchmerge: True, force: False, partial: False
416 branchmerge: True, force: False, partial: False
418 ancestor: 924404dff337, local: 02963e448370+, remote: fe905ef2c33e
417 ancestor: 924404dff337, local: 02963e448370+, remote: fe905ef2c33e
419 note: possible conflict - a was renamed multiple times to:
418 note: possible conflict - a was renamed multiple times to:
420 b
419 b
421 c
420 c
422 preserving rev for resolve of rev
421 preserving rev for resolve of rev
423 c: remote created -> g
422 c: remote created -> g
424 getting c
423 getting c
425 rev: versions differ -> m (premerge)
424 rev: versions differ -> m (premerge)
426 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
425 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
427 merging rev
426 merging rev
428 my rev@02963e448370+ other rev@fe905ef2c33e ancestor rev@924404dff337
427 my rev@02963e448370+ other rev@fe905ef2c33e ancestor rev@924404dff337
429 rev: versions differ -> m (merge)
428 rev: versions differ -> m (merge)
430 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
429 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
431 my rev@02963e448370+ other rev@fe905ef2c33e ancestor rev@924404dff337
430 my rev@02963e448370+ other rev@fe905ef2c33e ancestor rev@924404dff337
432 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
431 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
433 merge tool returned: 0
432 merge tool returned: 0
434 1 files updated, 1 files merged, 0 files removed, 0 files unresolved
433 1 files updated, 1 files merged, 0 files removed, 0 files unresolved
435 (branch merge, don't forget to commit)
434 (branch merge, don't forget to commit)
436 --------------
435 --------------
437 M c
436 M c
438 C b
437 C b
439 --------------
438 --------------
440
439
441 $ tm "nc a b" "up b " " " "12 merge b no ancestor"
440 $ tm "nc a b" "up b " " " "12 merge b no ancestor"
442 created new head
441 created new head
443 --------------
442 --------------
444 test L:nc a b R:up b W: - 12 merge b no ancestor
443 test L:nc a b R:up b W: - 12 merge b no ancestor
445 --------------
444 --------------
446 searching for copies back to rev 1
445 searching for copies back to rev 1
447 unmatched files new in both:
446 unmatched files new in both:
448 b
447 b
449 resolving manifests
448 resolving manifests
450 branchmerge: True, force: False, partial: False
449 branchmerge: True, force: False, partial: False
451 ancestor: 924404dff337, local: 86a2aa42fc76+, remote: af30c7647fc7
450 ancestor: 924404dff337, local: 86a2aa42fc76+, remote: af30c7647fc7
452 preserving b for resolve of b
451 preserving b for resolve of b
453 preserving rev for resolve of rev
452 preserving rev for resolve of rev
454 starting 4 threads for background file closing (?)
453 starting 4 threads for background file closing (?)
455 b: both created -> m (premerge)
454 b: both created -> m (premerge)
456 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
455 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
457 merging b
456 merging b
458 my b@86a2aa42fc76+ other b@af30c7647fc7 ancestor b@000000000000
457 my b@86a2aa42fc76+ other b@af30c7647fc7 ancestor b@000000000000
459 rev: versions differ -> m (premerge)
458 rev: versions differ -> m (premerge)
460 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
459 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
461 merging rev
460 merging rev
462 my rev@86a2aa42fc76+ other rev@af30c7647fc7 ancestor rev@924404dff337
461 my rev@86a2aa42fc76+ other rev@af30c7647fc7 ancestor rev@924404dff337
463 b: both created -> m (merge)
462 b: both created -> m (merge)
464 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
463 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
465 my b@86a2aa42fc76+ other b@af30c7647fc7 ancestor b@000000000000
464 my b@86a2aa42fc76+ other b@af30c7647fc7 ancestor b@000000000000
466 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
465 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
467 merge tool returned: 0
466 merge tool returned: 0
468 rev: versions differ -> m (merge)
467 rev: versions differ -> m (merge)
469 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
468 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
470 my rev@86a2aa42fc76+ other rev@af30c7647fc7 ancestor rev@924404dff337
469 my rev@86a2aa42fc76+ other rev@af30c7647fc7 ancestor rev@924404dff337
471 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
470 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
472 merge tool returned: 0
471 merge tool returned: 0
473 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
472 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
474 (branch merge, don't forget to commit)
473 (branch merge, don't forget to commit)
475 --------------
474 --------------
476 M b
475 M b
477 C a
476 C a
478 --------------
477 --------------
479
478
480 $ tm "up b " "nm a b" " " "13 merge b no ancestor"
479 $ tm "up b " "nm a b" " " "13 merge b no ancestor"
481 created new head
480 created new head
482 --------------
481 --------------
483 test L:up b R:nm a b W: - 13 merge b no ancestor
482 test L:up b R:nm a b W: - 13 merge b no ancestor
484 --------------
483 --------------
485 searching for copies back to rev 1
484 searching for copies back to rev 1
486 unmatched files new in both:
485 unmatched files new in both:
487 b
486 b
488 resolving manifests
487 resolving manifests
489 branchmerge: True, force: False, partial: False
488 branchmerge: True, force: False, partial: False
490 ancestor: 924404dff337, local: 59318016310c+, remote: bdb19105162a
489 ancestor: 924404dff337, local: 59318016310c+, remote: bdb19105162a
491 preserving b for resolve of b
490 preserving b for resolve of b
492 preserving rev for resolve of rev
491 preserving rev for resolve of rev
493 a: other deleted -> r
492 a: other deleted -> r
494 removing a
493 removing a
495 starting 4 threads for background file closing (?)
494 starting 4 threads for background file closing (?)
496 b: both created -> m (premerge)
495 b: both created -> m (premerge)
497 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
496 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
498 merging b
497 merging b
499 my b@59318016310c+ other b@bdb19105162a ancestor b@000000000000
498 my b@59318016310c+ other b@bdb19105162a ancestor b@000000000000
500 rev: versions differ -> m (premerge)
499 rev: versions differ -> m (premerge)
501 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
500 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
502 merging rev
501 merging rev
503 my rev@59318016310c+ other rev@bdb19105162a ancestor rev@924404dff337
502 my rev@59318016310c+ other rev@bdb19105162a ancestor rev@924404dff337
504 b: both created -> m (merge)
503 b: both created -> m (merge)
505 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
504 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
506 my b@59318016310c+ other b@bdb19105162a ancestor b@000000000000
505 my b@59318016310c+ other b@bdb19105162a ancestor b@000000000000
507 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
506 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
508 merge tool returned: 0
507 merge tool returned: 0
509 rev: versions differ -> m (merge)
508 rev: versions differ -> m (merge)
510 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
509 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
511 my rev@59318016310c+ other rev@bdb19105162a ancestor rev@924404dff337
510 my rev@59318016310c+ other rev@bdb19105162a ancestor rev@924404dff337
512 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
511 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
513 merge tool returned: 0
512 merge tool returned: 0
514 0 files updated, 2 files merged, 1 files removed, 0 files unresolved
513 0 files updated, 2 files merged, 1 files removed, 0 files unresolved
515 (branch merge, don't forget to commit)
514 (branch merge, don't forget to commit)
516 --------------
515 --------------
517 M b
516 M b
518 --------------
517 --------------
519
518
520 $ tm "nc a b" "up a b" " " "14 merge b no ancestor"
519 $ tm "nc a b" "up a b" " " "14 merge b no ancestor"
521 created new head
520 created new head
522 --------------
521 --------------
523 test L:nc a b R:up a b W: - 14 merge b no ancestor
522 test L:nc a b R:up a b W: - 14 merge b no ancestor
524 --------------
523 --------------
525 searching for copies back to rev 1
524 searching for copies back to rev 1
526 unmatched files new in both:
525 unmatched files new in both:
527 b
526 b
528 resolving manifests
527 resolving manifests
529 branchmerge: True, force: False, partial: False
528 branchmerge: True, force: False, partial: False
530 ancestor: 924404dff337, local: 86a2aa42fc76+, remote: 8dbce441892a
529 ancestor: 924404dff337, local: 86a2aa42fc76+, remote: 8dbce441892a
531 preserving b for resolve of b
530 preserving b for resolve of b
532 preserving rev for resolve of rev
531 preserving rev for resolve of rev
533 a: remote is newer -> g
532 a: remote is newer -> g
534 getting a
533 getting a
535 b: both created -> m (premerge)
534 b: both created -> m (premerge)
536 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
535 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
537 merging b
536 merging b
538 my b@86a2aa42fc76+ other b@8dbce441892a ancestor b@000000000000
537 my b@86a2aa42fc76+ other b@8dbce441892a ancestor b@000000000000
539 rev: versions differ -> m (premerge)
538 rev: versions differ -> m (premerge)
540 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
539 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
541 merging rev
540 merging rev
542 my rev@86a2aa42fc76+ other rev@8dbce441892a ancestor rev@924404dff337
541 my rev@86a2aa42fc76+ other rev@8dbce441892a ancestor rev@924404dff337
543 b: both created -> m (merge)
542 b: both created -> m (merge)
544 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
543 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
545 my b@86a2aa42fc76+ other b@8dbce441892a ancestor b@000000000000
544 my b@86a2aa42fc76+ other b@8dbce441892a ancestor b@000000000000
546 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
545 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
547 merge tool returned: 0
546 merge tool returned: 0
548 rev: versions differ -> m (merge)
547 rev: versions differ -> m (merge)
549 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
548 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
550 my rev@86a2aa42fc76+ other rev@8dbce441892a ancestor rev@924404dff337
549 my rev@86a2aa42fc76+ other rev@8dbce441892a ancestor rev@924404dff337
551 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
550 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
552 merge tool returned: 0
551 merge tool returned: 0
553 1 files updated, 2 files merged, 0 files removed, 0 files unresolved
552 1 files updated, 2 files merged, 0 files removed, 0 files unresolved
554 (branch merge, don't forget to commit)
553 (branch merge, don't forget to commit)
555 --------------
554 --------------
556 M a
555 M a
557 M b
556 M b
558 --------------
557 --------------
559
558
560 $ tm "up b " "nm a b" " " "15 merge b no ancestor, remove a"
559 $ tm "up b " "nm a b" " " "15 merge b no ancestor, remove a"
561 created new head
560 created new head
562 --------------
561 --------------
563 test L:up b R:nm a b W: - 15 merge b no ancestor, remove a
562 test L:up b R:nm a b W: - 15 merge b no ancestor, remove a
564 --------------
563 --------------
565 searching for copies back to rev 1
564 searching for copies back to rev 1
566 unmatched files new in both:
565 unmatched files new in both:
567 b
566 b
568 resolving manifests
567 resolving manifests
569 branchmerge: True, force: False, partial: False
568 branchmerge: True, force: False, partial: False
570 ancestor: 924404dff337, local: 59318016310c+, remote: bdb19105162a
569 ancestor: 924404dff337, local: 59318016310c+, remote: bdb19105162a
571 preserving b for resolve of b
570 preserving b for resolve of b
572 preserving rev for resolve of rev
571 preserving rev for resolve of rev
573 a: other deleted -> r
572 a: other deleted -> r
574 removing a
573 removing a
575 starting 4 threads for background file closing (?)
574 starting 4 threads for background file closing (?)
576 b: both created -> m (premerge)
575 b: both created -> m (premerge)
577 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
576 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
578 merging b
577 merging b
579 my b@59318016310c+ other b@bdb19105162a ancestor b@000000000000
578 my b@59318016310c+ other b@bdb19105162a ancestor b@000000000000
580 rev: versions differ -> m (premerge)
579 rev: versions differ -> m (premerge)
581 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
580 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
582 merging rev
581 merging rev
583 my rev@59318016310c+ other rev@bdb19105162a ancestor rev@924404dff337
582 my rev@59318016310c+ other rev@bdb19105162a ancestor rev@924404dff337
584 b: both created -> m (merge)
583 b: both created -> m (merge)
585 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
584 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
586 my b@59318016310c+ other b@bdb19105162a ancestor b@000000000000
585 my b@59318016310c+ other b@bdb19105162a ancestor b@000000000000
587 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
586 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
588 merge tool returned: 0
587 merge tool returned: 0
589 rev: versions differ -> m (merge)
588 rev: versions differ -> m (merge)
590 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
589 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
591 my rev@59318016310c+ other rev@bdb19105162a ancestor rev@924404dff337
590 my rev@59318016310c+ other rev@bdb19105162a ancestor rev@924404dff337
592 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
591 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
593 merge tool returned: 0
592 merge tool returned: 0
594 0 files updated, 2 files merged, 1 files removed, 0 files unresolved
593 0 files updated, 2 files merged, 1 files removed, 0 files unresolved
595 (branch merge, don't forget to commit)
594 (branch merge, don't forget to commit)
596 --------------
595 --------------
597 M b
596 M b
598 --------------
597 --------------
599
598
600 $ tm "nc a b" "up a b" " " "16 get a, merge b no ancestor"
599 $ tm "nc a b" "up a b" " " "16 get a, merge b no ancestor"
601 created new head
600 created new head
602 --------------
601 --------------
603 test L:nc a b R:up a b W: - 16 get a, merge b no ancestor
602 test L:nc a b R:up a b W: - 16 get a, merge b no ancestor
604 --------------
603 --------------
605 searching for copies back to rev 1
604 searching for copies back to rev 1
606 unmatched files new in both:
605 unmatched files new in both:
607 b
606 b
608 resolving manifests
607 resolving manifests
609 branchmerge: True, force: False, partial: False
608 branchmerge: True, force: False, partial: False
610 ancestor: 924404dff337, local: 86a2aa42fc76+, remote: 8dbce441892a
609 ancestor: 924404dff337, local: 86a2aa42fc76+, remote: 8dbce441892a
611 preserving b for resolve of b
610 preserving b for resolve of b
612 preserving rev for resolve of rev
611 preserving rev for resolve of rev
613 a: remote is newer -> g
612 a: remote is newer -> g
614 getting a
613 getting a
615 b: both created -> m (premerge)
614 b: both created -> m (premerge)
616 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
615 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
617 merging b
616 merging b
618 my b@86a2aa42fc76+ other b@8dbce441892a ancestor b@000000000000
617 my b@86a2aa42fc76+ other b@8dbce441892a ancestor b@000000000000
619 rev: versions differ -> m (premerge)
618 rev: versions differ -> m (premerge)
620 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
619 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
621 merging rev
620 merging rev
622 my rev@86a2aa42fc76+ other rev@8dbce441892a ancestor rev@924404dff337
621 my rev@86a2aa42fc76+ other rev@8dbce441892a ancestor rev@924404dff337
623 b: both created -> m (merge)
622 b: both created -> m (merge)
624 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
623 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
625 my b@86a2aa42fc76+ other b@8dbce441892a ancestor b@000000000000
624 my b@86a2aa42fc76+ other b@8dbce441892a ancestor b@000000000000
626 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
625 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
627 merge tool returned: 0
626 merge tool returned: 0
628 rev: versions differ -> m (merge)
627 rev: versions differ -> m (merge)
629 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
628 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
630 my rev@86a2aa42fc76+ other rev@8dbce441892a ancestor rev@924404dff337
629 my rev@86a2aa42fc76+ other rev@8dbce441892a ancestor rev@924404dff337
631 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
630 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
632 merge tool returned: 0
631 merge tool returned: 0
633 1 files updated, 2 files merged, 0 files removed, 0 files unresolved
632 1 files updated, 2 files merged, 0 files removed, 0 files unresolved
634 (branch merge, don't forget to commit)
633 (branch merge, don't forget to commit)
635 --------------
634 --------------
636 M a
635 M a
637 M b
636 M b
638 --------------
637 --------------
639
638
640 $ tm "up a b" "nc a b" " " "17 keep a, merge b no ancestor"
639 $ tm "up a b" "nc a b" " " "17 keep a, merge b no ancestor"
641 created new head
640 created new head
642 --------------
641 --------------
643 test L:up a b R:nc a b W: - 17 keep a, merge b no ancestor
642 test L:up a b R:nc a b W: - 17 keep a, merge b no ancestor
644 --------------
643 --------------
645 searching for copies back to rev 1
644 searching for copies back to rev 1
646 unmatched files new in both:
645 unmatched files new in both:
647 b
646 b
648 resolving manifests
647 resolving manifests
649 branchmerge: True, force: False, partial: False
648 branchmerge: True, force: False, partial: False
650 ancestor: 924404dff337, local: 0b76e65c8289+, remote: 4ce40f5aca24
649 ancestor: 924404dff337, local: 0b76e65c8289+, remote: 4ce40f5aca24
651 preserving b for resolve of b
650 preserving b for resolve of b
652 preserving rev for resolve of rev
651 preserving rev for resolve of rev
653 starting 4 threads for background file closing (?)
652 starting 4 threads for background file closing (?)
654 b: both created -> m (premerge)
653 b: both created -> m (premerge)
655 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
654 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
656 merging b
655 merging b
657 my b@0b76e65c8289+ other b@4ce40f5aca24 ancestor b@000000000000
656 my b@0b76e65c8289+ other b@4ce40f5aca24 ancestor b@000000000000
658 rev: versions differ -> m (premerge)
657 rev: versions differ -> m (premerge)
659 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
658 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
660 merging rev
659 merging rev
661 my rev@0b76e65c8289+ other rev@4ce40f5aca24 ancestor rev@924404dff337
660 my rev@0b76e65c8289+ other rev@4ce40f5aca24 ancestor rev@924404dff337
662 b: both created -> m (merge)
661 b: both created -> m (merge)
663 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
662 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
664 my b@0b76e65c8289+ other b@4ce40f5aca24 ancestor b@000000000000
663 my b@0b76e65c8289+ other b@4ce40f5aca24 ancestor b@000000000000
665 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
664 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
666 merge tool returned: 0
665 merge tool returned: 0
667 rev: versions differ -> m (merge)
666 rev: versions differ -> m (merge)
668 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
667 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
669 my rev@0b76e65c8289+ other rev@4ce40f5aca24 ancestor rev@924404dff337
668 my rev@0b76e65c8289+ other rev@4ce40f5aca24 ancestor rev@924404dff337
670 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
669 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
671 merge tool returned: 0
670 merge tool returned: 0
672 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
671 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
673 (branch merge, don't forget to commit)
672 (branch merge, don't forget to commit)
674 --------------
673 --------------
675 M b
674 M b
676 C a
675 C a
677 --------------
676 --------------
678
677
679 $ tm "nm a b" "up a b" " " "18 merge b no ancestor"
678 $ tm "nm a b" "up a b" " " "18 merge b no ancestor"
680 created new head
679 created new head
681 --------------
680 --------------
682 test L:nm a b R:up a b W: - 18 merge b no ancestor
681 test L:nm a b R:up a b W: - 18 merge b no ancestor
683 --------------
682 --------------
684 searching for copies back to rev 1
683 searching for copies back to rev 1
685 unmatched files new in both:
684 unmatched files new in both:
686 b
685 b
687 resolving manifests
686 resolving manifests
688 branchmerge: True, force: False, partial: False
687 branchmerge: True, force: False, partial: False
689 ancestor: 924404dff337, local: 02963e448370+, remote: 8dbce441892a
688 ancestor: 924404dff337, local: 02963e448370+, remote: 8dbce441892a
690 preserving b for resolve of b
689 preserving b for resolve of b
691 preserving rev for resolve of rev
690 preserving rev for resolve of rev
692 starting 4 threads for background file closing (?)
691 starting 4 threads for background file closing (?)
693 a: prompt deleted/changed -> m (premerge)
692 a: prompt deleted/changed -> m (premerge)
694 picked tool ':prompt' for a (binary False symlink False changedelete True)
693 picked tool ':prompt' for a (binary False symlink False changedelete True)
695 file 'a' was deleted in local [working copy] but was modified in other [merge rev].
694 file 'a' was deleted in local [working copy] but was modified in other [merge rev].
696 What do you want to do?
695 What do you want to do?
697 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
696 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
698 b: both created -> m (premerge)
697 b: both created -> m (premerge)
699 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
698 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
700 merging b
699 merging b
701 my b@02963e448370+ other b@8dbce441892a ancestor b@000000000000
700 my b@02963e448370+ other b@8dbce441892a ancestor b@000000000000
702 rev: versions differ -> m (premerge)
701 rev: versions differ -> m (premerge)
703 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
702 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
704 merging rev
703 merging rev
705 my rev@02963e448370+ other rev@8dbce441892a ancestor rev@924404dff337
704 my rev@02963e448370+ other rev@8dbce441892a ancestor rev@924404dff337
706 b: both created -> m (merge)
705 b: both created -> m (merge)
707 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
706 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
708 my b@02963e448370+ other b@8dbce441892a ancestor b@000000000000
707 my b@02963e448370+ other b@8dbce441892a ancestor b@000000000000
709 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
708 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
710 merge tool returned: 0
709 merge tool returned: 0
711 rev: versions differ -> m (merge)
710 rev: versions differ -> m (merge)
712 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
711 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
713 my rev@02963e448370+ other rev@8dbce441892a ancestor rev@924404dff337
712 my rev@02963e448370+ other rev@8dbce441892a ancestor rev@924404dff337
714 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
713 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
715 merge tool returned: 0
714 merge tool returned: 0
716 0 files updated, 2 files merged, 0 files removed, 1 files unresolved
715 0 files updated, 2 files merged, 0 files removed, 1 files unresolved
717 use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon
716 use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon
718 --------------
717 --------------
719 M a
718 M a
720 M b
719 M b
721 abort: unresolved merge conflicts (see 'hg help resolve')
720 abort: unresolved merge conflicts (see 'hg help resolve')
722 --------------
721 --------------
723
722
724 $ tm "up a b" "nm a b" " " "19 merge b no ancestor, prompt remove a"
723 $ tm "up a b" "nm a b" " " "19 merge b no ancestor, prompt remove a"
725 created new head
724 created new head
726 --------------
725 --------------
727 test L:up a b R:nm a b W: - 19 merge b no ancestor, prompt remove a
726 test L:up a b R:nm a b W: - 19 merge b no ancestor, prompt remove a
728 --------------
727 --------------
729 searching for copies back to rev 1
728 searching for copies back to rev 1
730 unmatched files new in both:
729 unmatched files new in both:
731 b
730 b
732 resolving manifests
731 resolving manifests
733 branchmerge: True, force: False, partial: False
732 branchmerge: True, force: False, partial: False
734 ancestor: 924404dff337, local: 0b76e65c8289+, remote: bdb19105162a
733 ancestor: 924404dff337, local: 0b76e65c8289+, remote: bdb19105162a
735 preserving a for resolve of a
734 preserving a for resolve of a
736 preserving b for resolve of b
735 preserving b for resolve of b
737 preserving rev for resolve of rev
736 preserving rev for resolve of rev
738 starting 4 threads for background file closing (?)
737 starting 4 threads for background file closing (?)
739 a: prompt changed/deleted -> m (premerge)
738 a: prompt changed/deleted -> m (premerge)
740 picked tool ':prompt' for a (binary False symlink False changedelete True)
739 picked tool ':prompt' for a (binary False symlink False changedelete True)
741 file 'a' was deleted in other [merge rev] but was modified in local [working copy].
740 file 'a' was deleted in other [merge rev] but was modified in local [working copy].
742 What do you want to do?
741 What do you want to do?
743 use (c)hanged version, (d)elete, or leave (u)nresolved? u
742 use (c)hanged version, (d)elete, or leave (u)nresolved? u
744 b: both created -> m (premerge)
743 b: both created -> m (premerge)
745 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
744 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
746 merging b
745 merging b
747 my b@0b76e65c8289+ other b@bdb19105162a ancestor b@000000000000
746 my b@0b76e65c8289+ other b@bdb19105162a ancestor b@000000000000
748 rev: versions differ -> m (premerge)
747 rev: versions differ -> m (premerge)
749 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
748 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
750 merging rev
749 merging rev
751 my rev@0b76e65c8289+ other rev@bdb19105162a ancestor rev@924404dff337
750 my rev@0b76e65c8289+ other rev@bdb19105162a ancestor rev@924404dff337
752 b: both created -> m (merge)
751 b: both created -> m (merge)
753 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
752 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
754 my b@0b76e65c8289+ other b@bdb19105162a ancestor b@000000000000
753 my b@0b76e65c8289+ other b@bdb19105162a ancestor b@000000000000
755 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
754 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
756 merge tool returned: 0
755 merge tool returned: 0
757 rev: versions differ -> m (merge)
756 rev: versions differ -> m (merge)
758 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
757 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
759 my rev@0b76e65c8289+ other rev@bdb19105162a ancestor rev@924404dff337
758 my rev@0b76e65c8289+ other rev@bdb19105162a ancestor rev@924404dff337
760 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
759 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
761 merge tool returned: 0
760 merge tool returned: 0
762 0 files updated, 2 files merged, 0 files removed, 1 files unresolved
761 0 files updated, 2 files merged, 0 files removed, 1 files unresolved
763 use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon
762 use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon
764 --------------
763 --------------
765 M b
764 M b
766 C a
765 C a
767 abort: unresolved merge conflicts (see 'hg help resolve')
766 abort: unresolved merge conflicts (see 'hg help resolve')
768 --------------
767 --------------
769
768
770 $ tm "up a " "um a b" " " "20 merge a and b to b, remove a"
769 $ tm "up a " "um a b" " " "20 merge a and b to b, remove a"
771 created new head
770 created new head
772 --------------
771 --------------
773 test L:up a R:um a b W: - 20 merge a and b to b, remove a
772 test L:up a R:um a b W: - 20 merge a and b to b, remove a
774 --------------
773 --------------
775 searching for copies back to rev 1
774 searching for copies back to rev 1
776 unmatched files in other:
775 unmatched files in other:
777 b
776 b
778 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
777 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
779 src: 'a' -> dst: 'b' *
778 src: 'a' -> dst: 'b' *
780 checking for directory renames
779 checking for directory renames
781 resolving manifests
780 resolving manifests
782 branchmerge: True, force: False, partial: False
781 branchmerge: True, force: False, partial: False
783 ancestor: 924404dff337, local: e300d1c794ec+, remote: 49b6d8032493
782 ancestor: 924404dff337, local: e300d1c794ec+, remote: 49b6d8032493
784 preserving a for resolve of b
783 preserving a for resolve of b
785 preserving rev for resolve of rev
784 preserving rev for resolve of rev
786 removing a
785 removing a
787 starting 4 threads for background file closing (?)
786 starting 4 threads for background file closing (?)
788 b: remote moved from a -> m (premerge)
787 b: remote moved from a -> m (premerge)
789 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
788 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
790 merging a and b to b
789 merging a and b to b
791 my b@e300d1c794ec+ other b@49b6d8032493 ancestor a@924404dff337
790 my b@e300d1c794ec+ other b@49b6d8032493 ancestor a@924404dff337
792 rev: versions differ -> m (premerge)
791 rev: versions differ -> m (premerge)
793 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
792 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
794 merging rev
793 merging rev
795 my rev@e300d1c794ec+ other rev@49b6d8032493 ancestor rev@924404dff337
794 my rev@e300d1c794ec+ other rev@49b6d8032493 ancestor rev@924404dff337
796 b: remote moved from a -> m (merge)
795 b: remote moved from a -> m (merge)
797 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
796 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
798 my b@e300d1c794ec+ other b@49b6d8032493 ancestor a@924404dff337
797 my b@e300d1c794ec+ other b@49b6d8032493 ancestor a@924404dff337
799 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
798 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
800 merge tool returned: 0
799 merge tool returned: 0
801 rev: versions differ -> m (merge)
800 rev: versions differ -> m (merge)
802 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
801 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
803 my rev@e300d1c794ec+ other rev@49b6d8032493 ancestor rev@924404dff337
802 my rev@e300d1c794ec+ other rev@49b6d8032493 ancestor rev@924404dff337
804 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
803 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
805 merge tool returned: 0
804 merge tool returned: 0
806 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
805 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
807 (branch merge, don't forget to commit)
806 (branch merge, don't forget to commit)
808 --------------
807 --------------
809 M b
808 M b
810 a
809 a
811 --------------
810 --------------
812
811
813 $ tm "um a b" "up a " " " "21 merge a and b to b"
812 $ tm "um a b" "up a " " " "21 merge a and b to b"
814 created new head
813 created new head
815 --------------
814 --------------
816 test L:um a b R:up a W: - 21 merge a and b to b
815 test L:um a b R:up a W: - 21 merge a and b to b
817 --------------
816 --------------
818 searching for copies back to rev 1
817 searching for copies back to rev 1
819 unmatched files in local:
818 unmatched files in local:
820 b
819 b
821 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
820 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
822 src: 'a' -> dst: 'b' *
821 src: 'a' -> dst: 'b' *
823 checking for directory renames
822 checking for directory renames
824 resolving manifests
823 resolving manifests
825 branchmerge: True, force: False, partial: False
824 branchmerge: True, force: False, partial: False
826 ancestor: 924404dff337, local: 62e7bf090eba+, remote: f4db7e329e71
825 ancestor: 924404dff337, local: 62e7bf090eba+, remote: f4db7e329e71
827 preserving b for resolve of b
826 preserving b for resolve of b
828 preserving rev for resolve of rev
827 preserving rev for resolve of rev
829 starting 4 threads for background file closing (?)
828 starting 4 threads for background file closing (?)
830 b: local copied/moved from a -> m (premerge)
829 b: local copied/moved from a -> m (premerge)
831 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
830 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
832 merging b and a to b
831 merging b and a to b
833 my b@62e7bf090eba+ other a@f4db7e329e71 ancestor a@924404dff337
832 my b@62e7bf090eba+ other a@f4db7e329e71 ancestor a@924404dff337
834 rev: versions differ -> m (premerge)
833 rev: versions differ -> m (premerge)
835 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
834 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
836 merging rev
835 merging rev
837 my rev@62e7bf090eba+ other rev@f4db7e329e71 ancestor rev@924404dff337
836 my rev@62e7bf090eba+ other rev@f4db7e329e71 ancestor rev@924404dff337
838 b: local copied/moved from a -> m (merge)
837 b: local copied/moved from a -> m (merge)
839 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
838 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
840 my b@62e7bf090eba+ other a@f4db7e329e71 ancestor a@924404dff337
839 my b@62e7bf090eba+ other a@f4db7e329e71 ancestor a@924404dff337
841 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
840 launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob)
842 merge tool returned: 0
841 merge tool returned: 0
843 rev: versions differ -> m (merge)
842 rev: versions differ -> m (merge)
844 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
843 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
845 my rev@62e7bf090eba+ other rev@f4db7e329e71 ancestor rev@924404dff337
844 my rev@62e7bf090eba+ other rev@f4db7e329e71 ancestor rev@924404dff337
846 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
845 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
847 merge tool returned: 0
846 merge tool returned: 0
848 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
847 0 files updated, 2 files merged, 0 files removed, 0 files unresolved
849 (branch merge, don't forget to commit)
848 (branch merge, don't forget to commit)
850 --------------
849 --------------
851 M b
850 M b
852 a
851 a
853 --------------
852 --------------
854
853
855
854
856 m "nm a b" "um x a" " " "22 get a, keep b"
855 m "nm a b" "um x a" " " "22 get a, keep b"
857
856
858 $ tm "nm a b" "up a c" " " "23 get c, keep b"
857 $ tm "nm a b" "up a c" " " "23 get c, keep b"
859 created new head
858 created new head
860 --------------
859 --------------
861 test L:nm a b R:up a c W: - 23 get c, keep b
860 test L:nm a b R:up a c W: - 23 get c, keep b
862 --------------
861 --------------
863 searching for copies back to rev 1
862 searching for copies back to rev 1
864 unmatched files in local:
863 unmatched files in local:
865 b
864 b
866 unmatched files in other:
865 unmatched files in other:
867 c
866 c
868 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
867 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
869 src: 'a' -> dst: 'b' *
868 src: 'a' -> dst: 'b' *
870 checking for directory renames
869 checking for directory renames
871 resolving manifests
870 resolving manifests
872 branchmerge: True, force: False, partial: False
871 branchmerge: True, force: False, partial: False
873 ancestor: 924404dff337, local: 02963e448370+, remote: 2b958612230f
872 ancestor: 924404dff337, local: 02963e448370+, remote: 2b958612230f
874 preserving b for resolve of b
873 preserving b for resolve of b
875 preserving rev for resolve of rev
874 preserving rev for resolve of rev
876 c: remote created -> g
875 c: remote created -> g
877 getting c
876 getting c
878 b: local copied/moved from a -> m (premerge)
877 b: local copied/moved from a -> m (premerge)
879 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
878 picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob)
880 merging b and a to b
879 merging b and a to b
881 my b@02963e448370+ other a@2b958612230f ancestor a@924404dff337
880 my b@02963e448370+ other a@2b958612230f ancestor a@924404dff337
882 premerge successful
881 premerge successful
883 rev: versions differ -> m (premerge)
882 rev: versions differ -> m (premerge)
884 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
883 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
885 merging rev
884 merging rev
886 my rev@02963e448370+ other rev@2b958612230f ancestor rev@924404dff337
885 my rev@02963e448370+ other rev@2b958612230f ancestor rev@924404dff337
887 rev: versions differ -> m (merge)
886 rev: versions differ -> m (merge)
888 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
887 picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob)
889 my rev@02963e448370+ other rev@2b958612230f ancestor rev@924404dff337
888 my rev@02963e448370+ other rev@2b958612230f ancestor rev@924404dff337
890 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
889 launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob)
891 merge tool returned: 0
890 merge tool returned: 0
892 1 files updated, 2 files merged, 0 files removed, 0 files unresolved
891 1 files updated, 2 files merged, 0 files removed, 0 files unresolved
893 (branch merge, don't forget to commit)
892 (branch merge, don't forget to commit)
894 --------------
893 --------------
895 M b
894 M b
896 a
895 a
897 M c
896 M c
898 --------------
897 --------------
899
898
900
899
901 $ cd ..
900 $ cd ..
902
901
903
902
904 Systematic and terse testing of merge merges and ancestor calculation:
903 Systematic and terse testing of merge merges and ancestor calculation:
905
904
906 Expected result:
905 Expected result:
907
906
908 \ a m1 m2 dst
907 \ a m1 m2 dst
909 0 - f f f "versions differ"
908 0 - f f f "versions differ"
910 1 f g g g "versions differ"
909 1 f g g g "versions differ"
911 2 f f f f "versions differ"
910 2 f f f f "versions differ"
912 3 f f g f+g "remote copied to " + f
911 3 f f g f+g "remote copied to " + f
913 4 f f g g "remote moved to " + f
912 4 f f g g "remote moved to " + f
914 5 f g f f+g "local copied to " + f2
913 5 f g f f+g "local copied to " + f2
915 6 f g f g "local moved to " + f2
914 6 f g f g "local moved to " + f2
916 7 - (f) f f "remote differs from untracked local"
915 7 - (f) f f "remote differs from untracked local"
917 8 f (f) f f "remote differs from untracked local"
916 8 f (f) f f "remote differs from untracked local"
918
917
919 $ hg init ancestortest
918 $ hg init ancestortest
920 $ cd ancestortest
919 $ cd ancestortest
921 $ for x in 1 2 3 4 5 6 8; do mkdir $x; echo a > $x/f; done
920 $ for x in 1 2 3 4 5 6 8; do mkdir $x; echo a > $x/f; done
922 $ hg ci -Aqm "a"
921 $ hg ci -Aqm "a"
923 $ mkdir 0
922 $ mkdir 0
924 $ touch 0/f
923 $ touch 0/f
925 $ hg mv 1/f 1/g
924 $ hg mv 1/f 1/g
926 $ hg cp 5/f 5/g
925 $ hg cp 5/f 5/g
927 $ hg mv 6/f 6/g
926 $ hg mv 6/f 6/g
928 $ hg rm 8/f
927 $ hg rm 8/f
929 $ for x in */*; do echo m1 > $x; done
928 $ for x in */*; do echo m1 > $x; done
930 $ hg ci -Aqm "m1"
929 $ hg ci -Aqm "m1"
931 $ hg up -qr0
930 $ hg up -qr0
932 $ mkdir 0 7
931 $ mkdir 0 7
933 $ touch 0/f 7/f
932 $ touch 0/f 7/f
934 $ hg mv 1/f 1/g
933 $ hg mv 1/f 1/g
935 $ hg cp 3/f 3/g
934 $ hg cp 3/f 3/g
936 $ hg mv 4/f 4/g
935 $ hg mv 4/f 4/g
937 $ for x in */*; do echo m2 > $x; done
936 $ for x in */*; do echo m2 > $x; done
938 $ hg ci -Aqm "m2"
937 $ hg ci -Aqm "m2"
939 $ hg up -qr1
938 $ hg up -qr1
940 $ mkdir 7 8
939 $ mkdir 7 8
941 $ echo m > 7/f
940 $ echo m > 7/f
942 $ echo m > 8/f
941 $ echo m > 8/f
943 $ hg merge -f --tool internal:dump -v --debug -r2 | sed '/^resolving manifests/,$d' 2> /dev/null
942 $ hg merge -f --tool internal:dump -v --debug -r2 | sed '/^resolving manifests/,$d' 2> /dev/null
944 searching for copies back to rev 1
943 searching for copies back to rev 1
945 unmatched files in local:
944 unmatched files in local:
946 5/g
945 5/g
947 6/g
946 6/g
948 unmatched files in other:
947 unmatched files in other:
949 3/g
948 3/g
950 4/g
949 4/g
951 7/f
950 7/f
952 unmatched files new in both:
951 unmatched files new in both:
953 0/f
952 0/f
954 1/g
953 1/g
955 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
954 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
956 src: '3/f' -> dst: '3/g' *
955 src: '3/f' -> dst: '3/g' *
957 src: '4/f' -> dst: '4/g' *
956 src: '4/f' -> dst: '4/g' *
958 src: '5/f' -> dst: '5/g' *
957 src: '5/f' -> dst: '5/g' *
959 src: '6/f' -> dst: '6/g' *
958 src: '6/f' -> dst: '6/g' *
960 checking for directory renames
959 checking for directory renames
961 $ hg mani
960 $ hg mani
962 0/f
961 0/f
963 1/g
962 1/g
964 2/f
963 2/f
965 3/f
964 3/f
966 4/f
965 4/f
967 5/f
966 5/f
968 5/g
967 5/g
969 6/g
968 6/g
970 $ for f in */*; do echo $f:; cat $f; done
969 $ for f in */*; do echo $f:; cat $f; done
971 0/f:
970 0/f:
972 m1
971 m1
973 0/f.base:
972 0/f.base:
974 0/f.local:
973 0/f.local:
975 m1
974 m1
976 0/f.orig:
975 0/f.orig:
977 m1
976 m1
978 0/f.other:
977 0/f.other:
979 m2
978 m2
980 1/g:
979 1/g:
981 m1
980 m1
982 1/g.base:
981 1/g.base:
983 a
982 a
984 1/g.local:
983 1/g.local:
985 m1
984 m1
986 1/g.orig:
985 1/g.orig:
987 m1
986 m1
988 1/g.other:
987 1/g.other:
989 m2
988 m2
990 2/f:
989 2/f:
991 m1
990 m1
992 2/f.base:
991 2/f.base:
993 a
992 a
994 2/f.local:
993 2/f.local:
995 m1
994 m1
996 2/f.orig:
995 2/f.orig:
997 m1
996 m1
998 2/f.other:
997 2/f.other:
999 m2
998 m2
1000 3/f:
999 3/f:
1001 m1
1000 m1
1002 3/f.base:
1001 3/f.base:
1003 a
1002 a
1004 3/f.local:
1003 3/f.local:
1005 m1
1004 m1
1006 3/f.orig:
1005 3/f.orig:
1007 m1
1006 m1
1008 3/f.other:
1007 3/f.other:
1009 m2
1008 m2
1010 3/g:
1009 3/g:
1011 m1
1010 m1
1012 3/g.base:
1011 3/g.base:
1013 a
1012 a
1014 3/g.local:
1013 3/g.local:
1015 m1
1014 m1
1016 3/g.orig:
1015 3/g.orig:
1017 m1
1016 m1
1018 3/g.other:
1017 3/g.other:
1019 m2
1018 m2
1020 4/g:
1019 4/g:
1021 m1
1020 m1
1022 4/g.base:
1021 4/g.base:
1023 a
1022 a
1024 4/g.local:
1023 4/g.local:
1025 m1
1024 m1
1026 4/g.orig:
1025 4/g.orig:
1027 m1
1026 m1
1028 4/g.other:
1027 4/g.other:
1029 m2
1028 m2
1030 5/f:
1029 5/f:
1031 m1
1030 m1
1032 5/f.base:
1031 5/f.base:
1033 a
1032 a
1034 5/f.local:
1033 5/f.local:
1035 m1
1034 m1
1036 5/f.orig:
1035 5/f.orig:
1037 m1
1036 m1
1038 5/f.other:
1037 5/f.other:
1039 m2
1038 m2
1040 5/g:
1039 5/g:
1041 m1
1040 m1
1042 5/g.base:
1041 5/g.base:
1043 a
1042 a
1044 5/g.local:
1043 5/g.local:
1045 m1
1044 m1
1046 5/g.orig:
1045 5/g.orig:
1047 m1
1046 m1
1048 5/g.other:
1047 5/g.other:
1049 m2
1048 m2
1050 6/g:
1049 6/g:
1051 m1
1050 m1
1052 6/g.base:
1051 6/g.base:
1053 a
1052 a
1054 6/g.local:
1053 6/g.local:
1055 m1
1054 m1
1056 6/g.orig:
1055 6/g.orig:
1057 m1
1056 m1
1058 6/g.other:
1057 6/g.other:
1059 m2
1058 m2
1060 7/f:
1059 7/f:
1061 m
1060 m
1062 7/f.base:
1061 7/f.base:
1063 7/f.local:
1062 7/f.local:
1064 m
1063 m
1065 7/f.orig:
1064 7/f.orig:
1066 m
1065 m
1067 7/f.other:
1066 7/f.other:
1068 m2
1067 m2
1069 8/f:
1068 8/f:
1070 m2
1069 m2
1071 $ cd ..
1070 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now