##// END OF EJS Templates
tests: use 'f' in test-merge-criss-cross.t to prepare for recursive dumping...
Mads Kiilerich -
r30855:72c36a2b stable
parent child Browse files
Show More
@@ -1,352 +1,365 b''
1 Criss cross merging
1 Criss cross merging
2
2
3 $ hg init criss-cross
3 $ hg init criss-cross
4 $ cd criss-cross
4 $ cd criss-cross
5 $ echo '0 base' > f1
5 $ echo '0 base' > f1
6 $ echo '0 base' > f2
6 $ echo '0 base' > f2
7 $ hg ci -Aqm '0 base'
7 $ hg ci -Aqm '0 base'
8
8
9 $ echo '1 first change' > f1
9 $ echo '1 first change' > f1
10 $ hg ci -m '1 first change f1'
10 $ hg ci -m '1 first change f1'
11
11
12 $ hg up -qr0
12 $ hg up -qr0
13 $ echo '2 first change' > f2
13 $ echo '2 first change' > f2
14 $ hg ci -qm '2 first change f2'
14 $ hg ci -qm '2 first change f2'
15
15
16 $ hg merge -qr 1
16 $ hg merge -qr 1
17 $ hg ci -m '3 merge'
17 $ hg ci -m '3 merge'
18
18
19 $ hg up -qr2
19 $ hg up -qr2
20 $ hg merge -qr1
20 $ hg merge -qr1
21 $ hg ci -qm '4 merge'
21 $ hg ci -qm '4 merge'
22
22
23 $ echo '5 second change' > f1
23 $ echo '5 second change' > f1
24 $ hg ci -m '5 second change f1'
24 $ hg ci -m '5 second change f1'
25
25
26 $ hg up -r3
26 $ hg up -r3
27 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
27 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
28 $ echo '6 second change' > f2
28 $ echo '6 second change' > f2
29 $ hg ci -m '6 second change f2'
29 $ hg ci -m '6 second change f2'
30
30
31 $ hg log -G
31 $ hg log -G
32 @ changeset: 6:3b08d01b0ab5
32 @ changeset: 6:3b08d01b0ab5
33 | tag: tip
33 | tag: tip
34 | parent: 3:cf89f02107e5
34 | parent: 3:cf89f02107e5
35 | user: test
35 | user: test
36 | date: Thu Jan 01 00:00:00 1970 +0000
36 | date: Thu Jan 01 00:00:00 1970 +0000
37 | summary: 6 second change f2
37 | summary: 6 second change f2
38 |
38 |
39 | o changeset: 5:adfe50279922
39 | o changeset: 5:adfe50279922
40 | | user: test
40 | | user: test
41 | | date: Thu Jan 01 00:00:00 1970 +0000
41 | | date: Thu Jan 01 00:00:00 1970 +0000
42 | | summary: 5 second change f1
42 | | summary: 5 second change f1
43 | |
43 | |
44 | o changeset: 4:7d3e55501ae6
44 | o changeset: 4:7d3e55501ae6
45 | |\ parent: 2:40663881a6dd
45 | |\ parent: 2:40663881a6dd
46 | | | parent: 1:0f6b37dbe527
46 | | | parent: 1:0f6b37dbe527
47 | | | user: test
47 | | | user: test
48 | | | date: Thu Jan 01 00:00:00 1970 +0000
48 | | | date: Thu Jan 01 00:00:00 1970 +0000
49 | | | summary: 4 merge
49 | | | summary: 4 merge
50 | | |
50 | | |
51 o---+ changeset: 3:cf89f02107e5
51 o---+ changeset: 3:cf89f02107e5
52 | | | parent: 2:40663881a6dd
52 | | | parent: 2:40663881a6dd
53 |/ / parent: 1:0f6b37dbe527
53 |/ / parent: 1:0f6b37dbe527
54 | | user: test
54 | | user: test
55 | | date: Thu Jan 01 00:00:00 1970 +0000
55 | | date: Thu Jan 01 00:00:00 1970 +0000
56 | | summary: 3 merge
56 | | summary: 3 merge
57 | |
57 | |
58 | o changeset: 2:40663881a6dd
58 | o changeset: 2:40663881a6dd
59 | | parent: 0:40494bf2444c
59 | | parent: 0:40494bf2444c
60 | | user: test
60 | | user: test
61 | | date: Thu Jan 01 00:00:00 1970 +0000
61 | | date: Thu Jan 01 00:00:00 1970 +0000
62 | | summary: 2 first change f2
62 | | summary: 2 first change f2
63 | |
63 | |
64 o | changeset: 1:0f6b37dbe527
64 o | changeset: 1:0f6b37dbe527
65 |/ user: test
65 |/ user: test
66 | date: Thu Jan 01 00:00:00 1970 +0000
66 | date: Thu Jan 01 00:00:00 1970 +0000
67 | summary: 1 first change f1
67 | summary: 1 first change f1
68 |
68 |
69 o changeset: 0:40494bf2444c
69 o changeset: 0:40494bf2444c
70 user: test
70 user: test
71 date: Thu Jan 01 00:00:00 1970 +0000
71 date: Thu Jan 01 00:00:00 1970 +0000
72 summary: 0 base
72 summary: 0 base
73
73
74
74
75 $ hg merge -v --debug --tool internal:dump 5 --config merge.preferancestor='!'
75 $ hg merge -v --debug --tool internal:dump 5 --config merge.preferancestor='!'
76 note: using 0f6b37dbe527 as ancestor of 3b08d01b0ab5 and adfe50279922
76 note: using 0f6b37dbe527 as ancestor of 3b08d01b0ab5 and adfe50279922
77 alternatively, use --config merge.preferancestor=40663881a6dd
77 alternatively, use --config merge.preferancestor=40663881a6dd
78 searching for copies back to rev 3
78 searching for copies back to rev 3
79 resolving manifests
79 resolving manifests
80 branchmerge: True, force: False, partial: False
80 branchmerge: True, force: False, partial: False
81 ancestor: 0f6b37dbe527, local: 3b08d01b0ab5+, remote: adfe50279922
81 ancestor: 0f6b37dbe527, local: 3b08d01b0ab5+, remote: adfe50279922
82 preserving f2 for resolve of f2
82 preserving f2 for resolve of f2
83 f1: remote is newer -> g
83 f1: remote is newer -> g
84 getting f1
84 getting f1
85 f2: versions differ -> m (premerge)
85 f2: versions differ -> m (premerge)
86 picked tool ':dump' for f2 (binary False symlink False changedelete False)
86 picked tool ':dump' for f2 (binary False symlink False changedelete False)
87 merging f2
87 merging f2
88 my f2@3b08d01b0ab5+ other f2@adfe50279922 ancestor f2@0f6b37dbe527
88 my f2@3b08d01b0ab5+ other f2@adfe50279922 ancestor f2@0f6b37dbe527
89 f2: versions differ -> m (merge)
89 f2: versions differ -> m (merge)
90 picked tool ':dump' for f2 (binary False symlink False changedelete False)
90 picked tool ':dump' for f2 (binary False symlink False changedelete False)
91 my f2@3b08d01b0ab5+ other f2@adfe50279922 ancestor f2@0f6b37dbe527
91 my f2@3b08d01b0ab5+ other f2@adfe50279922 ancestor f2@0f6b37dbe527
92 1 files updated, 0 files merged, 0 files removed, 1 files unresolved
92 1 files updated, 0 files merged, 0 files removed, 1 files unresolved
93 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
93 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
94 [1]
94 [1]
95
95
96 $ head *
96 $ f --dump *
97 ==> f1 <==
97 f1:
98 >>>
98 5 second change
99 5 second change
99
100 <<<
100 ==> f2 <==
101 f2:
102 >>>
101 6 second change
103 6 second change
102
104 <<<
103 ==> f2.base <==
105 f2.base:
106 >>>
104 0 base
107 0 base
105
108 <<<
106 ==> f2.local <==
109 f2.local:
110 >>>
107 6 second change
111 6 second change
108
112 <<<
109 ==> f2.orig <==
113 f2.orig:
114 >>>
110 6 second change
115 6 second change
111
116 <<<
112 ==> f2.other <==
117 f2.other:
118 >>>
113 2 first change
119 2 first change
120 <<<
114
121
115 $ hg up -qC .
122 $ hg up -qC .
116 $ hg merge -v --tool internal:dump 5 --config merge.preferancestor="null 40663881 3b08d"
123 $ hg merge -v --tool internal:dump 5 --config merge.preferancestor="null 40663881 3b08d"
117 note: using 40663881a6dd as ancestor of 3b08d01b0ab5 and adfe50279922
124 note: using 40663881a6dd as ancestor of 3b08d01b0ab5 and adfe50279922
118 alternatively, use --config merge.preferancestor=0f6b37dbe527
125 alternatively, use --config merge.preferancestor=0f6b37dbe527
119 resolving manifests
126 resolving manifests
120 merging f1
127 merging f1
121 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
128 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
122 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
129 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
123 [1]
130 [1]
124
131
125 Redo merge with merge.preferancestor="*" to enable bid merge
132 Redo merge with merge.preferancestor="*" to enable bid merge
126
133
127 $ rm f*
134 $ rm f*
128 $ hg up -qC .
135 $ hg up -qC .
129 $ hg merge -v --debug --tool internal:dump 5 --config merge.preferancestor="*"
136 $ hg merge -v --debug --tool internal:dump 5 --config merge.preferancestor="*"
130 note: merging 3b08d01b0ab5+ and adfe50279922 using bids from ancestors 0f6b37dbe527 and 40663881a6dd
137 note: merging 3b08d01b0ab5+ and adfe50279922 using bids from ancestors 0f6b37dbe527 and 40663881a6dd
131
138
132 calculating bids for ancestor 0f6b37dbe527
139 calculating bids for ancestor 0f6b37dbe527
133 searching for copies back to rev 3
140 searching for copies back to rev 3
134 resolving manifests
141 resolving manifests
135 branchmerge: True, force: False, partial: False
142 branchmerge: True, force: False, partial: False
136 ancestor: 0f6b37dbe527, local: 3b08d01b0ab5+, remote: adfe50279922
143 ancestor: 0f6b37dbe527, local: 3b08d01b0ab5+, remote: adfe50279922
137 f1: remote is newer -> g
144 f1: remote is newer -> g
138 f2: versions differ -> m
145 f2: versions differ -> m
139
146
140 calculating bids for ancestor 40663881a6dd
147 calculating bids for ancestor 40663881a6dd
141 searching for copies back to rev 3
148 searching for copies back to rev 3
142 resolving manifests
149 resolving manifests
143 branchmerge: True, force: False, partial: False
150 branchmerge: True, force: False, partial: False
144 ancestor: 40663881a6dd, local: 3b08d01b0ab5+, remote: adfe50279922
151 ancestor: 40663881a6dd, local: 3b08d01b0ab5+, remote: adfe50279922
145 f1: versions differ -> m
152 f1: versions differ -> m
146 f2: remote unchanged -> k
153 f2: remote unchanged -> k
147
154
148 auction for merging merge bids
155 auction for merging merge bids
149 f1: picking 'get' action
156 f1: picking 'get' action
150 f2: picking 'keep' action
157 f2: picking 'keep' action
151 end of auction
158 end of auction
152
159
153 f1: remote is newer -> g
160 f1: remote is newer -> g
154 getting f1
161 getting f1
155 f2: remote unchanged -> k
162 f2: remote unchanged -> k
156 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
163 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
157 (branch merge, don't forget to commit)
164 (branch merge, don't forget to commit)
158
165
159 $ head *
166 $ f --dump *
160 ==> f1 <==
167 f1:
168 >>>
161 5 second change
169 5 second change
162
170 <<<
163 ==> f2 <==
171 f2:
172 >>>
164 6 second change
173 6 second change
174 <<<
165
175
166
176
167 The other way around:
177 The other way around:
168
178
169 $ hg up -C -r5
179 $ hg up -C -r5
170 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
180 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
171 $ hg merge -v --debug --config merge.preferancestor="*"
181 $ hg merge -v --debug --config merge.preferancestor="*"
172 note: merging adfe50279922+ and 3b08d01b0ab5 using bids from ancestors 0f6b37dbe527 and 40663881a6dd
182 note: merging adfe50279922+ and 3b08d01b0ab5 using bids from ancestors 0f6b37dbe527 and 40663881a6dd
173
183
174 calculating bids for ancestor 0f6b37dbe527
184 calculating bids for ancestor 0f6b37dbe527
175 searching for copies back to rev 3
185 searching for copies back to rev 3
176 resolving manifests
186 resolving manifests
177 branchmerge: True, force: False, partial: False
187 branchmerge: True, force: False, partial: False
178 ancestor: 0f6b37dbe527, local: adfe50279922+, remote: 3b08d01b0ab5
188 ancestor: 0f6b37dbe527, local: adfe50279922+, remote: 3b08d01b0ab5
179 f1: remote unchanged -> k
189 f1: remote unchanged -> k
180 f2: versions differ -> m
190 f2: versions differ -> m
181
191
182 calculating bids for ancestor 40663881a6dd
192 calculating bids for ancestor 40663881a6dd
183 searching for copies back to rev 3
193 searching for copies back to rev 3
184 resolving manifests
194 resolving manifests
185 branchmerge: True, force: False, partial: False
195 branchmerge: True, force: False, partial: False
186 ancestor: 40663881a6dd, local: adfe50279922+, remote: 3b08d01b0ab5
196 ancestor: 40663881a6dd, local: adfe50279922+, remote: 3b08d01b0ab5
187 f1: versions differ -> m
197 f1: versions differ -> m
188 f2: remote is newer -> g
198 f2: remote is newer -> g
189
199
190 auction for merging merge bids
200 auction for merging merge bids
191 f1: picking 'keep' action
201 f1: picking 'keep' action
192 f2: picking 'get' action
202 f2: picking 'get' action
193 end of auction
203 end of auction
194
204
195 f2: remote is newer -> g
205 f2: remote is newer -> g
196 getting f2
206 getting f2
197 f1: remote unchanged -> k
207 f1: remote unchanged -> k
198 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
208 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
199 (branch merge, don't forget to commit)
209 (branch merge, don't forget to commit)
200
210
201 $ head *
211 $ f --dump *
202 ==> f1 <==
212 f1:
213 >>>
203 5 second change
214 5 second change
204
215 <<<
205 ==> f2 <==
216 f2:
217 >>>
206 6 second change
218 6 second change
219 <<<
207
220
208 Verify how the output looks and and how verbose it is:
221 Verify how the output looks and and how verbose it is:
209
222
210 $ hg up -qC
223 $ hg up -qC
211 $ hg merge
224 $ hg merge
212 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
225 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
213 (branch merge, don't forget to commit)
226 (branch merge, don't forget to commit)
214
227
215 $ hg up -qC tip
228 $ hg up -qC tip
216 $ hg merge -v
229 $ hg merge -v
217 note: merging 3b08d01b0ab5+ and adfe50279922 using bids from ancestors 0f6b37dbe527 and 40663881a6dd
230 note: merging 3b08d01b0ab5+ and adfe50279922 using bids from ancestors 0f6b37dbe527 and 40663881a6dd
218
231
219 calculating bids for ancestor 0f6b37dbe527
232 calculating bids for ancestor 0f6b37dbe527
220 resolving manifests
233 resolving manifests
221
234
222 calculating bids for ancestor 40663881a6dd
235 calculating bids for ancestor 40663881a6dd
223 resolving manifests
236 resolving manifests
224
237
225 auction for merging merge bids
238 auction for merging merge bids
226 f1: picking 'get' action
239 f1: picking 'get' action
227 f2: picking 'keep' action
240 f2: picking 'keep' action
228 end of auction
241 end of auction
229
242
230 getting f1
243 getting f1
231 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
244 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
232 (branch merge, don't forget to commit)
245 (branch merge, don't forget to commit)
233
246
234 $ hg up -qC
247 $ hg up -qC
235 $ hg merge -v --debug --config merge.preferancestor="*"
248 $ hg merge -v --debug --config merge.preferancestor="*"
236 note: merging 3b08d01b0ab5+ and adfe50279922 using bids from ancestors 0f6b37dbe527 and 40663881a6dd
249 note: merging 3b08d01b0ab5+ and adfe50279922 using bids from ancestors 0f6b37dbe527 and 40663881a6dd
237
250
238 calculating bids for ancestor 0f6b37dbe527
251 calculating bids for ancestor 0f6b37dbe527
239 searching for copies back to rev 3
252 searching for copies back to rev 3
240 resolving manifests
253 resolving manifests
241 branchmerge: True, force: False, partial: False
254 branchmerge: True, force: False, partial: False
242 ancestor: 0f6b37dbe527, local: 3b08d01b0ab5+, remote: adfe50279922
255 ancestor: 0f6b37dbe527, local: 3b08d01b0ab5+, remote: adfe50279922
243 f1: remote is newer -> g
256 f1: remote is newer -> g
244 f2: versions differ -> m
257 f2: versions differ -> m
245
258
246 calculating bids for ancestor 40663881a6dd
259 calculating bids for ancestor 40663881a6dd
247 searching for copies back to rev 3
260 searching for copies back to rev 3
248 resolving manifests
261 resolving manifests
249 branchmerge: True, force: False, partial: False
262 branchmerge: True, force: False, partial: False
250 ancestor: 40663881a6dd, local: 3b08d01b0ab5+, remote: adfe50279922
263 ancestor: 40663881a6dd, local: 3b08d01b0ab5+, remote: adfe50279922
251 f1: versions differ -> m
264 f1: versions differ -> m
252 f2: remote unchanged -> k
265 f2: remote unchanged -> k
253
266
254 auction for merging merge bids
267 auction for merging merge bids
255 f1: picking 'get' action
268 f1: picking 'get' action
256 f2: picking 'keep' action
269 f2: picking 'keep' action
257 end of auction
270 end of auction
258
271
259 f1: remote is newer -> g
272 f1: remote is newer -> g
260 getting f1
273 getting f1
261 f2: remote unchanged -> k
274 f2: remote unchanged -> k
262 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
275 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
263 (branch merge, don't forget to commit)
276 (branch merge, don't forget to commit)
264
277
265 $ cd ..
278 $ cd ..
266
279
267 http://stackoverflow.com/questions/9350005/how-do-i-specify-a-merge-base-to-use-in-a-hg-merge/9430810
280 http://stackoverflow.com/questions/9350005/how-do-i-specify-a-merge-base-to-use-in-a-hg-merge/9430810
268
281
269 $ hg init ancestor-merging
282 $ hg init ancestor-merging
270 $ cd ancestor-merging
283 $ cd ancestor-merging
271 $ echo a > x
284 $ echo a > x
272 $ hg commit -A -m a x
285 $ hg commit -A -m a x
273 $ hg update -q 0
286 $ hg update -q 0
274 $ echo b >> x
287 $ echo b >> x
275 $ hg commit -m b
288 $ hg commit -m b
276 $ hg update -q 0
289 $ hg update -q 0
277 $ echo c >> x
290 $ echo c >> x
278 $ hg commit -qm c
291 $ hg commit -qm c
279 $ hg update -q 1
292 $ hg update -q 1
280 $ hg merge -q --tool internal:local 2
293 $ hg merge -q --tool internal:local 2
281 $ echo c >> x
294 $ echo c >> x
282 $ hg commit -m bc
295 $ hg commit -m bc
283 $ hg update -q 2
296 $ hg update -q 2
284 $ hg merge -q --tool internal:local 1
297 $ hg merge -q --tool internal:local 1
285 $ echo b >> x
298 $ echo b >> x
286 $ hg commit -qm cb
299 $ hg commit -qm cb
287
300
288 $ hg merge --config merge.preferancestor='!'
301 $ hg merge --config merge.preferancestor='!'
289 note: using 70008a2163f6 as ancestor of 0d355fdef312 and 4b8b546a3eef
302 note: using 70008a2163f6 as ancestor of 0d355fdef312 and 4b8b546a3eef
290 alternatively, use --config merge.preferancestor=b211bbc6eb3c
303 alternatively, use --config merge.preferancestor=b211bbc6eb3c
291 merging x
304 merging x
292 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
305 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
293 (branch merge, don't forget to commit)
306 (branch merge, don't forget to commit)
294 $ cat x
307 $ cat x
295 a
308 a
296 c
309 c
297 b
310 b
298 c
311 c
299
312
300 $ hg up -qC .
313 $ hg up -qC .
301
314
302 $ hg merge --config merge.preferancestor=b211bbc6eb3c
315 $ hg merge --config merge.preferancestor=b211bbc6eb3c
303 note: using b211bbc6eb3c as ancestor of 0d355fdef312 and 4b8b546a3eef
316 note: using b211bbc6eb3c as ancestor of 0d355fdef312 and 4b8b546a3eef
304 alternatively, use --config merge.preferancestor=70008a2163f6
317 alternatively, use --config merge.preferancestor=70008a2163f6
305 merging x
318 merging x
306 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
319 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
307 (branch merge, don't forget to commit)
320 (branch merge, don't forget to commit)
308 $ cat x
321 $ cat x
309 a
322 a
310 b
323 b
311 c
324 c
312 b
325 b
313
326
314 $ hg up -qC .
327 $ hg up -qC .
315
328
316 $ hg merge -v --config merge.preferancestor="*"
329 $ hg merge -v --config merge.preferancestor="*"
317 note: merging 0d355fdef312+ and 4b8b546a3eef using bids from ancestors 70008a2163f6 and b211bbc6eb3c
330 note: merging 0d355fdef312+ and 4b8b546a3eef using bids from ancestors 70008a2163f6 and b211bbc6eb3c
318
331
319 calculating bids for ancestor 70008a2163f6
332 calculating bids for ancestor 70008a2163f6
320 resolving manifests
333 resolving manifests
321
334
322 calculating bids for ancestor b211bbc6eb3c
335 calculating bids for ancestor b211bbc6eb3c
323 resolving manifests
336 resolving manifests
324
337
325 auction for merging merge bids
338 auction for merging merge bids
326 x: multiple bids for merge action:
339 x: multiple bids for merge action:
327 versions differ -> m
340 versions differ -> m
328 versions differ -> m
341 versions differ -> m
329 x: ambiguous merge - picked m action
342 x: ambiguous merge - picked m action
330 end of auction
343 end of auction
331
344
332 merging x
345 merging x
333 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
346 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
334 (branch merge, don't forget to commit)
347 (branch merge, don't forget to commit)
335 $ cat x
348 $ cat x
336 a
349 a
337 c
350 c
338 b
351 b
339 c
352 c
340
353
341 Verify that the old context ancestor works with / despite preferancestor:
354 Verify that the old context ancestor works with / despite preferancestor:
342
355
343 $ hg log -r 'ancestor(head())' --config merge.preferancestor=1 -T '{rev}\n'
356 $ hg log -r 'ancestor(head())' --config merge.preferancestor=1 -T '{rev}\n'
344 1
357 1
345 $ hg log -r 'ancestor(head())' --config merge.preferancestor=2 -T '{rev}\n'
358 $ hg log -r 'ancestor(head())' --config merge.preferancestor=2 -T '{rev}\n'
346 2
359 2
347 $ hg log -r 'ancestor(head())' --config merge.preferancestor=3 -T '{rev}\n'
360 $ hg log -r 'ancestor(head())' --config merge.preferancestor=3 -T '{rev}\n'
348 1
361 1
349 $ hg log -r 'ancestor(head())' --config merge.preferancestor='1337 * - 2' -T '{rev}\n'
362 $ hg log -r 'ancestor(head())' --config merge.preferancestor='1337 * - 2' -T '{rev}\n'
350 2
363 2
351
364
352 $ cd ..
365 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now