Show More
@@ -1,1628 +1,1628 b'' | |||||
1 | test merge-tools configuration - mostly exercising filemerge.py |
|
1 | test merge-tools configuration - mostly exercising filemerge.py | |
2 |
|
2 | |||
3 | $ unset HGMERGE # make sure HGMERGE doesn't interfere with the test |
|
3 | $ unset HGMERGE # make sure HGMERGE doesn't interfere with the test | |
4 | $ hg init |
|
4 | $ hg init | |
5 |
|
5 | |||
6 | revision 0 |
|
6 | revision 0 | |
7 |
|
7 | |||
8 | $ echo "revision 0" > f |
|
8 | $ echo "revision 0" > f | |
9 | $ echo "space" >> f |
|
9 | $ echo "space" >> f | |
10 | $ hg commit -Am "revision 0" |
|
10 | $ hg commit -Am "revision 0" | |
11 | adding f |
|
11 | adding f | |
12 |
|
12 | |||
13 | revision 1 |
|
13 | revision 1 | |
14 |
|
14 | |||
15 | $ echo "revision 1" > f |
|
15 | $ echo "revision 1" > f | |
16 | $ echo "space" >> f |
|
16 | $ echo "space" >> f | |
17 | $ hg commit -Am "revision 1" |
|
17 | $ hg commit -Am "revision 1" | |
18 | $ hg update 0 > /dev/null |
|
18 | $ hg update 0 > /dev/null | |
19 |
|
19 | |||
20 | revision 2 |
|
20 | revision 2 | |
21 |
|
21 | |||
22 | $ echo "revision 2" > f |
|
22 | $ echo "revision 2" > f | |
23 | $ echo "space" >> f |
|
23 | $ echo "space" >> f | |
24 | $ hg commit -Am "revision 2" |
|
24 | $ hg commit -Am "revision 2" | |
25 | created new head |
|
25 | created new head | |
26 | $ hg update 0 > /dev/null |
|
26 | $ hg update 0 > /dev/null | |
27 |
|
27 | |||
28 | revision 3 - simple to merge |
|
28 | revision 3 - simple to merge | |
29 |
|
29 | |||
30 | $ echo "revision 3" >> f |
|
30 | $ echo "revision 3" >> f | |
31 | $ hg commit -Am "revision 3" |
|
31 | $ hg commit -Am "revision 3" | |
32 | created new head |
|
32 | created new head | |
33 |
|
33 | |||
34 | revision 4 - hard to merge |
|
34 | revision 4 - hard to merge | |
35 |
|
35 | |||
36 | $ hg update 0 > /dev/null |
|
36 | $ hg update 0 > /dev/null | |
37 | $ echo "revision 4" > f |
|
37 | $ echo "revision 4" > f | |
38 | $ hg commit -Am "revision 4" |
|
38 | $ hg commit -Am "revision 4" | |
39 | created new head |
|
39 | created new head | |
40 |
|
40 | |||
41 | $ echo "[merge-tools]" > .hg/hgrc |
|
41 | $ echo "[merge-tools]" > .hg/hgrc | |
42 |
|
42 | |||
43 | $ beforemerge() { |
|
43 | $ beforemerge() { | |
44 | > cat .hg/hgrc |
|
44 | > cat .hg/hgrc | |
45 | > echo "# hg update -C 1" |
|
45 | > echo "# hg update -C 1" | |
46 | > hg update -C 1 > /dev/null |
|
46 | > hg update -C 1 > /dev/null | |
47 | > } |
|
47 | > } | |
48 | $ aftermerge() { |
|
48 | $ aftermerge() { | |
49 | > echo "# cat f" |
|
49 | > echo "# cat f" | |
50 | > cat f |
|
50 | > cat f | |
51 | > echo "# hg stat" |
|
51 | > echo "# hg stat" | |
52 | > hg stat |
|
52 | > hg stat | |
53 | > echo "# hg resolve --list" |
|
53 | > echo "# hg resolve --list" | |
54 | > hg resolve --list |
|
54 | > hg resolve --list | |
55 | > rm -f f.orig |
|
55 | > rm -f f.orig | |
56 | > } |
|
56 | > } | |
57 |
|
57 | |||
58 | Tool selection |
|
58 | Tool selection | |
59 |
|
59 | |||
60 | default is internal merge: |
|
60 | default is internal merge: | |
61 |
|
61 | |||
62 | $ beforemerge |
|
62 | $ beforemerge | |
63 | [merge-tools] |
|
63 | [merge-tools] | |
64 | # hg update -C 1 |
|
64 | # hg update -C 1 | |
65 |
|
65 | |||
66 | hg merge -r 2 |
|
66 | hg merge -r 2 | |
67 | override $PATH to ensure hgmerge not visible; use $PYTHON in case we're |
|
67 | override $PATH to ensure hgmerge not visible; use $PYTHON in case we're | |
68 | running from a devel copy, not a temp installation |
|
68 | running from a devel copy, not a temp installation | |
69 |
|
69 | |||
70 | $ PATH="$BINDIR:/usr/sbin" $PYTHON "$BINDIR"/hg merge -r 2 |
|
70 | $ PATH="$BINDIR:/usr/sbin" $PYTHON "$BINDIR"/hg merge -r 2 | |
71 | merging f |
|
71 | merging f | |
72 | warning: conflicts while merging f! (edit, then use 'hg resolve --mark') |
|
72 | warning: conflicts while merging f! (edit, then use 'hg resolve --mark') | |
73 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
73 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
74 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
74 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
75 | [1] |
|
75 | [1] | |
76 | $ aftermerge |
|
76 | $ aftermerge | |
77 | # cat f |
|
77 | # cat f | |
78 | <<<<<<< working copy: ef83787e2614 - test: revision 1 |
|
78 | <<<<<<< working copy: ef83787e2614 - test: revision 1 | |
79 | revision 1 |
|
79 | revision 1 | |
80 | ======= |
|
80 | ======= | |
81 | revision 2 |
|
81 | revision 2 | |
82 | >>>>>>> merge rev: 0185f4e0cf02 - test: revision 2 |
|
82 | >>>>>>> merge rev: 0185f4e0cf02 - test: revision 2 | |
83 | space |
|
83 | space | |
84 | # hg stat |
|
84 | # hg stat | |
85 | M f |
|
85 | M f | |
86 | ? f.orig |
|
86 | ? f.orig | |
87 | # hg resolve --list |
|
87 | # hg resolve --list | |
88 | U f |
|
88 | U f | |
89 |
|
89 | |||
90 | simplest hgrc using false for merge: |
|
90 | simplest hgrc using false for merge: | |
91 |
|
91 | |||
92 | $ echo "false.whatever=" >> .hg/hgrc |
|
92 | $ echo "false.whatever=" >> .hg/hgrc | |
93 | $ beforemerge |
|
93 | $ beforemerge | |
94 | [merge-tools] |
|
94 | [merge-tools] | |
95 | false.whatever= |
|
95 | false.whatever= | |
96 | # hg update -C 1 |
|
96 | # hg update -C 1 | |
97 | $ hg merge -r 2 |
|
97 | $ hg merge -r 2 | |
98 | merging f |
|
98 | merging f | |
99 | merging f failed! |
|
99 | merging f failed! | |
100 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
100 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
101 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
101 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
102 | [1] |
|
102 | [1] | |
103 | $ aftermerge |
|
103 | $ aftermerge | |
104 | # cat f |
|
104 | # cat f | |
105 | revision 1 |
|
105 | revision 1 | |
106 | space |
|
106 | space | |
107 | # hg stat |
|
107 | # hg stat | |
108 | M f |
|
108 | M f | |
109 | ? f.orig |
|
109 | ? f.orig | |
110 | # hg resolve --list |
|
110 | # hg resolve --list | |
111 | U f |
|
111 | U f | |
112 |
|
112 | |||
113 | #if unix-permissions |
|
113 | #if unix-permissions | |
114 |
|
114 | |||
115 | unexecutable file in $PATH shouldn't be found: |
|
115 | unexecutable file in $PATH shouldn't be found: | |
116 |
|
116 | |||
117 | $ echo "echo fail" > false |
|
117 | $ echo "echo fail" > false | |
118 | $ hg up -qC 1 |
|
118 | $ hg up -qC 1 | |
119 | $ PATH="`pwd`:$BINDIR:/usr/sbin" $PYTHON "$BINDIR"/hg merge -r 2 |
|
119 | $ PATH="`pwd`:$BINDIR:/usr/sbin" $PYTHON "$BINDIR"/hg merge -r 2 | |
120 | merging f |
|
120 | merging f | |
121 | warning: conflicts while merging f! (edit, then use 'hg resolve --mark') |
|
121 | warning: conflicts while merging f! (edit, then use 'hg resolve --mark') | |
122 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
122 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
123 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
123 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
124 | [1] |
|
124 | [1] | |
125 | $ rm false |
|
125 | $ rm false | |
126 |
|
126 | |||
127 | #endif |
|
127 | #endif | |
128 |
|
128 | |||
129 | executable directory in $PATH shouldn't be found: |
|
129 | executable directory in $PATH shouldn't be found: | |
130 |
|
130 | |||
131 | $ mkdir false |
|
131 | $ mkdir false | |
132 | $ hg up -qC 1 |
|
132 | $ hg up -qC 1 | |
133 | $ PATH="`pwd`:$BINDIR:/usr/sbin" $PYTHON "$BINDIR"/hg merge -r 2 |
|
133 | $ PATH="`pwd`:$BINDIR:/usr/sbin" $PYTHON "$BINDIR"/hg merge -r 2 | |
134 | merging f |
|
134 | merging f | |
135 | warning: conflicts while merging f! (edit, then use 'hg resolve --mark') |
|
135 | warning: conflicts while merging f! (edit, then use 'hg resolve --mark') | |
136 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
136 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
137 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
137 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
138 | [1] |
|
138 | [1] | |
139 | $ rmdir false |
|
139 | $ rmdir false | |
140 |
|
140 | |||
141 | true with higher .priority gets precedence: |
|
141 | true with higher .priority gets precedence: | |
142 |
|
142 | |||
143 | $ echo "true.priority=1" >> .hg/hgrc |
|
143 | $ echo "true.priority=1" >> .hg/hgrc | |
144 | $ beforemerge |
|
144 | $ beforemerge | |
145 | [merge-tools] |
|
145 | [merge-tools] | |
146 | false.whatever= |
|
146 | false.whatever= | |
147 | true.priority=1 |
|
147 | true.priority=1 | |
148 | # hg update -C 1 |
|
148 | # hg update -C 1 | |
149 | $ hg merge -r 2 |
|
149 | $ hg merge -r 2 | |
150 | merging f |
|
150 | merging f | |
151 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
151 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
152 | (branch merge, don't forget to commit) |
|
152 | (branch merge, don't forget to commit) | |
153 | $ aftermerge |
|
153 | $ aftermerge | |
154 | # cat f |
|
154 | # cat f | |
155 | revision 1 |
|
155 | revision 1 | |
156 | space |
|
156 | space | |
157 | # hg stat |
|
157 | # hg stat | |
158 | M f |
|
158 | M f | |
159 | # hg resolve --list |
|
159 | # hg resolve --list | |
160 | R f |
|
160 | R f | |
161 |
|
161 | |||
162 | unless lowered on command line: |
|
162 | unless lowered on command line: | |
163 |
|
163 | |||
164 | $ beforemerge |
|
164 | $ beforemerge | |
165 | [merge-tools] |
|
165 | [merge-tools] | |
166 | false.whatever= |
|
166 | false.whatever= | |
167 | true.priority=1 |
|
167 | true.priority=1 | |
168 | # hg update -C 1 |
|
168 | # hg update -C 1 | |
169 | $ hg merge -r 2 --config merge-tools.true.priority=-7 |
|
169 | $ hg merge -r 2 --config merge-tools.true.priority=-7 | |
170 | merging f |
|
170 | merging f | |
171 | merging f failed! |
|
171 | merging f failed! | |
172 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
172 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
173 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
173 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
174 | [1] |
|
174 | [1] | |
175 | $ aftermerge |
|
175 | $ aftermerge | |
176 | # cat f |
|
176 | # cat f | |
177 | revision 1 |
|
177 | revision 1 | |
178 | space |
|
178 | space | |
179 | # hg stat |
|
179 | # hg stat | |
180 | M f |
|
180 | M f | |
181 | ? f.orig |
|
181 | ? f.orig | |
182 | # hg resolve --list |
|
182 | # hg resolve --list | |
183 | U f |
|
183 | U f | |
184 |
|
184 | |||
185 | or false set higher on command line: |
|
185 | or false set higher on command line: | |
186 |
|
186 | |||
187 | $ beforemerge |
|
187 | $ beforemerge | |
188 | [merge-tools] |
|
188 | [merge-tools] | |
189 | false.whatever= |
|
189 | false.whatever= | |
190 | true.priority=1 |
|
190 | true.priority=1 | |
191 | # hg update -C 1 |
|
191 | # hg update -C 1 | |
192 | $ hg merge -r 2 --config merge-tools.false.priority=117 |
|
192 | $ hg merge -r 2 --config merge-tools.false.priority=117 | |
193 | merging f |
|
193 | merging f | |
194 | merging f failed! |
|
194 | merging f failed! | |
195 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
195 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
196 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
196 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
197 | [1] |
|
197 | [1] | |
198 | $ aftermerge |
|
198 | $ aftermerge | |
199 | # cat f |
|
199 | # cat f | |
200 | revision 1 |
|
200 | revision 1 | |
201 | space |
|
201 | space | |
202 | # hg stat |
|
202 | # hg stat | |
203 | M f |
|
203 | M f | |
204 | ? f.orig |
|
204 | ? f.orig | |
205 | # hg resolve --list |
|
205 | # hg resolve --list | |
206 | U f |
|
206 | U f | |
207 |
|
207 | |||
208 | or true set to disabled: |
|
208 | or true set to disabled: | |
209 | $ beforemerge |
|
209 | $ beforemerge | |
210 | [merge-tools] |
|
210 | [merge-tools] | |
211 | false.whatever= |
|
211 | false.whatever= | |
212 | true.priority=1 |
|
212 | true.priority=1 | |
213 | # hg update -C 1 |
|
213 | # hg update -C 1 | |
214 | $ hg merge -r 2 --config merge-tools.true.disabled=yes |
|
214 | $ hg merge -r 2 --config merge-tools.true.disabled=yes | |
215 | merging f |
|
215 | merging f | |
216 | merging f failed! |
|
216 | merging f failed! | |
217 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
217 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
218 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
218 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
219 | [1] |
|
219 | [1] | |
220 | $ aftermerge |
|
220 | $ aftermerge | |
221 | # cat f |
|
221 | # cat f | |
222 | revision 1 |
|
222 | revision 1 | |
223 | space |
|
223 | space | |
224 | # hg stat |
|
224 | # hg stat | |
225 | M f |
|
225 | M f | |
226 | ? f.orig |
|
226 | ? f.orig | |
227 | # hg resolve --list |
|
227 | # hg resolve --list | |
228 | U f |
|
228 | U f | |
229 |
|
229 | |||
230 | or true.executable not found in PATH: |
|
230 | or true.executable not found in PATH: | |
231 |
|
231 | |||
232 | $ beforemerge |
|
232 | $ beforemerge | |
233 | [merge-tools] |
|
233 | [merge-tools] | |
234 | false.whatever= |
|
234 | false.whatever= | |
235 | true.priority=1 |
|
235 | true.priority=1 | |
236 | # hg update -C 1 |
|
236 | # hg update -C 1 | |
237 | $ hg merge -r 2 --config merge-tools.true.executable=nonexistentmergetool |
|
237 | $ hg merge -r 2 --config merge-tools.true.executable=nonexistentmergetool | |
238 | merging f |
|
238 | merging f | |
239 | merging f failed! |
|
239 | merging f failed! | |
240 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
240 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
241 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
241 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
242 | [1] |
|
242 | [1] | |
243 | $ aftermerge |
|
243 | $ aftermerge | |
244 | # cat f |
|
244 | # cat f | |
245 | revision 1 |
|
245 | revision 1 | |
246 | space |
|
246 | space | |
247 | # hg stat |
|
247 | # hg stat | |
248 | M f |
|
248 | M f | |
249 | ? f.orig |
|
249 | ? f.orig | |
250 | # hg resolve --list |
|
250 | # hg resolve --list | |
251 | U f |
|
251 | U f | |
252 |
|
252 | |||
253 | or true.executable with bogus path: |
|
253 | or true.executable with bogus path: | |
254 |
|
254 | |||
255 | $ beforemerge |
|
255 | $ beforemerge | |
256 | [merge-tools] |
|
256 | [merge-tools] | |
257 | false.whatever= |
|
257 | false.whatever= | |
258 | true.priority=1 |
|
258 | true.priority=1 | |
259 | # hg update -C 1 |
|
259 | # hg update -C 1 | |
260 | $ hg merge -r 2 --config merge-tools.true.executable=/nonexistent/mergetool |
|
260 | $ hg merge -r 2 --config merge-tools.true.executable=/nonexistent/mergetool | |
261 | merging f |
|
261 | merging f | |
262 | merging f failed! |
|
262 | merging f failed! | |
263 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
263 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
264 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
264 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
265 | [1] |
|
265 | [1] | |
266 | $ aftermerge |
|
266 | $ aftermerge | |
267 | # cat f |
|
267 | # cat f | |
268 | revision 1 |
|
268 | revision 1 | |
269 | space |
|
269 | space | |
270 | # hg stat |
|
270 | # hg stat | |
271 | M f |
|
271 | M f | |
272 | ? f.orig |
|
272 | ? f.orig | |
273 | # hg resolve --list |
|
273 | # hg resolve --list | |
274 | U f |
|
274 | U f | |
275 |
|
275 | |||
276 | but true.executable set to cat found in PATH works: |
|
276 | but true.executable set to cat found in PATH works: | |
277 |
|
277 | |||
278 | $ echo "true.executable=cat" >> .hg/hgrc |
|
278 | $ echo "true.executable=cat" >> .hg/hgrc | |
279 | $ beforemerge |
|
279 | $ beforemerge | |
280 | [merge-tools] |
|
280 | [merge-tools] | |
281 | false.whatever= |
|
281 | false.whatever= | |
282 | true.priority=1 |
|
282 | true.priority=1 | |
283 | true.executable=cat |
|
283 | true.executable=cat | |
284 | # hg update -C 1 |
|
284 | # hg update -C 1 | |
285 | $ hg merge -r 2 |
|
285 | $ hg merge -r 2 | |
286 | merging f |
|
286 | merging f | |
287 | revision 1 |
|
287 | revision 1 | |
288 | space |
|
288 | space | |
289 | revision 0 |
|
289 | revision 0 | |
290 | space |
|
290 | space | |
291 | revision 2 |
|
291 | revision 2 | |
292 | space |
|
292 | space | |
293 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
293 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
294 | (branch merge, don't forget to commit) |
|
294 | (branch merge, don't forget to commit) | |
295 | $ aftermerge |
|
295 | $ aftermerge | |
296 | # cat f |
|
296 | # cat f | |
297 | revision 1 |
|
297 | revision 1 | |
298 | space |
|
298 | space | |
299 | # hg stat |
|
299 | # hg stat | |
300 | M f |
|
300 | M f | |
301 | # hg resolve --list |
|
301 | # hg resolve --list | |
302 | R f |
|
302 | R f | |
303 |
|
303 | |||
304 | and true.executable set to cat with path works: |
|
304 | and true.executable set to cat with path works: | |
305 |
|
305 | |||
306 | $ beforemerge |
|
306 | $ beforemerge | |
307 | [merge-tools] |
|
307 | [merge-tools] | |
308 | false.whatever= |
|
308 | false.whatever= | |
309 | true.priority=1 |
|
309 | true.priority=1 | |
310 | true.executable=cat |
|
310 | true.executable=cat | |
311 | # hg update -C 1 |
|
311 | # hg update -C 1 | |
312 | $ hg merge -r 2 --config merge-tools.true.executable=cat |
|
312 | $ hg merge -r 2 --config merge-tools.true.executable=cat | |
313 | merging f |
|
313 | merging f | |
314 | revision 1 |
|
314 | revision 1 | |
315 | space |
|
315 | space | |
316 | revision 0 |
|
316 | revision 0 | |
317 | space |
|
317 | space | |
318 | revision 2 |
|
318 | revision 2 | |
319 | space |
|
319 | space | |
320 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
320 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
321 | (branch merge, don't forget to commit) |
|
321 | (branch merge, don't forget to commit) | |
322 | $ aftermerge |
|
322 | $ aftermerge | |
323 | # cat f |
|
323 | # cat f | |
324 | revision 1 |
|
324 | revision 1 | |
325 | space |
|
325 | space | |
326 | # hg stat |
|
326 | # hg stat | |
327 | M f |
|
327 | M f | |
328 | # hg resolve --list |
|
328 | # hg resolve --list | |
329 | R f |
|
329 | R f | |
330 |
|
330 | |||
331 | #if unix-permissions |
|
331 | #if unix-permissions | |
332 |
|
332 | |||
333 | environment variables in true.executable are handled: |
|
333 | environment variables in true.executable are handled: | |
334 |
|
334 | |||
335 | $ echo 'echo "custom merge tool"' > .hg/merge.sh |
|
335 | $ echo 'echo "custom merge tool"' > .hg/merge.sh | |
336 | $ beforemerge |
|
336 | $ beforemerge | |
337 | [merge-tools] |
|
337 | [merge-tools] | |
338 | false.whatever= |
|
338 | false.whatever= | |
339 | true.priority=1 |
|
339 | true.priority=1 | |
340 | true.executable=cat |
|
340 | true.executable=cat | |
341 | # hg update -C 1 |
|
341 | # hg update -C 1 | |
342 | $ hg --config merge-tools.true.executable='sh' \ |
|
342 | $ hg --config merge-tools.true.executable='sh' \ | |
343 | > --config merge-tools.true.args=.hg/merge.sh \ |
|
343 | > --config merge-tools.true.args=.hg/merge.sh \ | |
344 | > merge -r 2 |
|
344 | > merge -r 2 | |
345 | merging f |
|
345 | merging f | |
346 | custom merge tool |
|
346 | custom merge tool | |
347 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
347 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
348 | (branch merge, don't forget to commit) |
|
348 | (branch merge, don't forget to commit) | |
349 | $ aftermerge |
|
349 | $ aftermerge | |
350 | # cat f |
|
350 | # cat f | |
351 | revision 1 |
|
351 | revision 1 | |
352 | space |
|
352 | space | |
353 | # hg stat |
|
353 | # hg stat | |
354 | M f |
|
354 | M f | |
355 | # hg resolve --list |
|
355 | # hg resolve --list | |
356 | R f |
|
356 | R f | |
357 |
|
357 | |||
358 | #endif |
|
358 | #endif | |
359 |
|
359 | |||
360 | Tool selection and merge-patterns |
|
360 | Tool selection and merge-patterns | |
361 |
|
361 | |||
362 | merge-patterns specifies new tool false: |
|
362 | merge-patterns specifies new tool false: | |
363 |
|
363 | |||
364 | $ beforemerge |
|
364 | $ beforemerge | |
365 | [merge-tools] |
|
365 | [merge-tools] | |
366 | false.whatever= |
|
366 | false.whatever= | |
367 | true.priority=1 |
|
367 | true.priority=1 | |
368 | true.executable=cat |
|
368 | true.executable=cat | |
369 | # hg update -C 1 |
|
369 | # hg update -C 1 | |
370 | $ hg merge -r 2 --config merge-patterns.f=false |
|
370 | $ hg merge -r 2 --config merge-patterns.f=false | |
371 | merging f |
|
371 | merging f | |
372 | merging f failed! |
|
372 | merging f failed! | |
373 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
373 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
374 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
374 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
375 | [1] |
|
375 | [1] | |
376 | $ aftermerge |
|
376 | $ aftermerge | |
377 | # cat f |
|
377 | # cat f | |
378 | revision 1 |
|
378 | revision 1 | |
379 | space |
|
379 | space | |
380 | # hg stat |
|
380 | # hg stat | |
381 | M f |
|
381 | M f | |
382 | ? f.orig |
|
382 | ? f.orig | |
383 | # hg resolve --list |
|
383 | # hg resolve --list | |
384 | U f |
|
384 | U f | |
385 |
|
385 | |||
386 | merge-patterns specifies executable not found in PATH and gets warning: |
|
386 | merge-patterns specifies executable not found in PATH and gets warning: | |
387 |
|
387 | |||
388 | $ beforemerge |
|
388 | $ beforemerge | |
389 | [merge-tools] |
|
389 | [merge-tools] | |
390 | false.whatever= |
|
390 | false.whatever= | |
391 | true.priority=1 |
|
391 | true.priority=1 | |
392 | true.executable=cat |
|
392 | true.executable=cat | |
393 | # hg update -C 1 |
|
393 | # hg update -C 1 | |
394 | $ hg merge -r 2 --config merge-patterns.f=true --config merge-tools.true.executable=nonexistentmergetool |
|
394 | $ hg merge -r 2 --config merge-patterns.f=true --config merge-tools.true.executable=nonexistentmergetool | |
395 | couldn't find merge tool true (for pattern f) |
|
395 | couldn't find merge tool true (for pattern f) | |
396 | merging f |
|
396 | merging f | |
397 | couldn't find merge tool true (for pattern f) |
|
397 | couldn't find merge tool true (for pattern f) | |
398 | merging f failed! |
|
398 | merging f failed! | |
399 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
399 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
400 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
400 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
401 | [1] |
|
401 | [1] | |
402 | $ aftermerge |
|
402 | $ aftermerge | |
403 | # cat f |
|
403 | # cat f | |
404 | revision 1 |
|
404 | revision 1 | |
405 | space |
|
405 | space | |
406 | # hg stat |
|
406 | # hg stat | |
407 | M f |
|
407 | M f | |
408 | ? f.orig |
|
408 | ? f.orig | |
409 | # hg resolve --list |
|
409 | # hg resolve --list | |
410 | U f |
|
410 | U f | |
411 |
|
411 | |||
412 | merge-patterns specifies executable with bogus path and gets warning: |
|
412 | merge-patterns specifies executable with bogus path and gets warning: | |
413 |
|
413 | |||
414 | $ beforemerge |
|
414 | $ beforemerge | |
415 | [merge-tools] |
|
415 | [merge-tools] | |
416 | false.whatever= |
|
416 | false.whatever= | |
417 | true.priority=1 |
|
417 | true.priority=1 | |
418 | true.executable=cat |
|
418 | true.executable=cat | |
419 | # hg update -C 1 |
|
419 | # hg update -C 1 | |
420 | $ hg merge -r 2 --config merge-patterns.f=true --config merge-tools.true.executable=/nonexistent/mergetool |
|
420 | $ hg merge -r 2 --config merge-patterns.f=true --config merge-tools.true.executable=/nonexistent/mergetool | |
421 | couldn't find merge tool true (for pattern f) |
|
421 | couldn't find merge tool true (for pattern f) | |
422 | merging f |
|
422 | merging f | |
423 | couldn't find merge tool true (for pattern f) |
|
423 | couldn't find merge tool true (for pattern f) | |
424 | merging f failed! |
|
424 | merging f failed! | |
425 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
425 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
426 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
426 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
427 | [1] |
|
427 | [1] | |
428 | $ aftermerge |
|
428 | $ aftermerge | |
429 | # cat f |
|
429 | # cat f | |
430 | revision 1 |
|
430 | revision 1 | |
431 | space |
|
431 | space | |
432 | # hg stat |
|
432 | # hg stat | |
433 | M f |
|
433 | M f | |
434 | ? f.orig |
|
434 | ? f.orig | |
435 | # hg resolve --list |
|
435 | # hg resolve --list | |
436 | U f |
|
436 | U f | |
437 |
|
437 | |||
438 | ui.merge overrules priority |
|
438 | ui.merge overrules priority | |
439 |
|
439 | |||
440 | ui.merge specifies false: |
|
440 | ui.merge specifies false: | |
441 |
|
441 | |||
442 | $ beforemerge |
|
442 | $ beforemerge | |
443 | [merge-tools] |
|
443 | [merge-tools] | |
444 | false.whatever= |
|
444 | false.whatever= | |
445 | true.priority=1 |
|
445 | true.priority=1 | |
446 | true.executable=cat |
|
446 | true.executable=cat | |
447 | # hg update -C 1 |
|
447 | # hg update -C 1 | |
448 | $ hg merge -r 2 --config ui.merge=false |
|
448 | $ hg merge -r 2 --config ui.merge=false | |
449 | merging f |
|
449 | merging f | |
450 | merging f failed! |
|
450 | merging f failed! | |
451 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
451 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
452 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
452 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
453 | [1] |
|
453 | [1] | |
454 | $ aftermerge |
|
454 | $ aftermerge | |
455 | # cat f |
|
455 | # cat f | |
456 | revision 1 |
|
456 | revision 1 | |
457 | space |
|
457 | space | |
458 | # hg stat |
|
458 | # hg stat | |
459 | M f |
|
459 | M f | |
460 | ? f.orig |
|
460 | ? f.orig | |
461 | # hg resolve --list |
|
461 | # hg resolve --list | |
462 | U f |
|
462 | U f | |
463 |
|
463 | |||
464 | ui.merge specifies internal:fail: |
|
464 | ui.merge specifies internal:fail: | |
465 |
|
465 | |||
466 | $ beforemerge |
|
466 | $ beforemerge | |
467 | [merge-tools] |
|
467 | [merge-tools] | |
468 | false.whatever= |
|
468 | false.whatever= | |
469 | true.priority=1 |
|
469 | true.priority=1 | |
470 | true.executable=cat |
|
470 | true.executable=cat | |
471 | # hg update -C 1 |
|
471 | # hg update -C 1 | |
472 | $ hg merge -r 2 --config ui.merge=internal:fail |
|
472 | $ hg merge -r 2 --config ui.merge=internal:fail | |
473 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
473 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
474 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
474 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
475 | [1] |
|
475 | [1] | |
476 | $ aftermerge |
|
476 | $ aftermerge | |
477 | # cat f |
|
477 | # cat f | |
478 | revision 1 |
|
478 | revision 1 | |
479 | space |
|
479 | space | |
480 | # hg stat |
|
480 | # hg stat | |
481 | M f |
|
481 | M f | |
482 | # hg resolve --list |
|
482 | # hg resolve --list | |
483 | U f |
|
483 | U f | |
484 |
|
484 | |||
485 | ui.merge specifies :local (without internal prefix): |
|
485 | ui.merge specifies :local (without internal prefix): | |
486 |
|
486 | |||
487 | $ beforemerge |
|
487 | $ beforemerge | |
488 | [merge-tools] |
|
488 | [merge-tools] | |
489 | false.whatever= |
|
489 | false.whatever= | |
490 | true.priority=1 |
|
490 | true.priority=1 | |
491 | true.executable=cat |
|
491 | true.executable=cat | |
492 | # hg update -C 1 |
|
492 | # hg update -C 1 | |
493 | $ hg merge -r 2 --config ui.merge=:local |
|
493 | $ hg merge -r 2 --config ui.merge=:local | |
494 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
494 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
495 | (branch merge, don't forget to commit) |
|
495 | (branch merge, don't forget to commit) | |
496 | $ aftermerge |
|
496 | $ aftermerge | |
497 | # cat f |
|
497 | # cat f | |
498 | revision 1 |
|
498 | revision 1 | |
499 | space |
|
499 | space | |
500 | # hg stat |
|
500 | # hg stat | |
501 | M f |
|
501 | M f | |
502 | # hg resolve --list |
|
502 | # hg resolve --list | |
503 | R f |
|
503 | R f | |
504 |
|
504 | |||
505 | ui.merge specifies internal:other: |
|
505 | ui.merge specifies internal:other: | |
506 |
|
506 | |||
507 | $ beforemerge |
|
507 | $ beforemerge | |
508 | [merge-tools] |
|
508 | [merge-tools] | |
509 | false.whatever= |
|
509 | false.whatever= | |
510 | true.priority=1 |
|
510 | true.priority=1 | |
511 | true.executable=cat |
|
511 | true.executable=cat | |
512 | # hg update -C 1 |
|
512 | # hg update -C 1 | |
513 | $ hg merge -r 2 --config ui.merge=internal:other |
|
513 | $ hg merge -r 2 --config ui.merge=internal:other | |
514 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
514 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
515 | (branch merge, don't forget to commit) |
|
515 | (branch merge, don't forget to commit) | |
516 | $ aftermerge |
|
516 | $ aftermerge | |
517 | # cat f |
|
517 | # cat f | |
518 | revision 2 |
|
518 | revision 2 | |
519 | space |
|
519 | space | |
520 | # hg stat |
|
520 | # hg stat | |
521 | M f |
|
521 | M f | |
522 | # hg resolve --list |
|
522 | # hg resolve --list | |
523 | R f |
|
523 | R f | |
524 |
|
524 | |||
525 | ui.merge specifies internal:prompt: |
|
525 | ui.merge specifies internal:prompt: | |
526 |
|
526 | |||
527 | $ beforemerge |
|
527 | $ beforemerge | |
528 | [merge-tools] |
|
528 | [merge-tools] | |
529 | false.whatever= |
|
529 | false.whatever= | |
530 | true.priority=1 |
|
530 | true.priority=1 | |
531 | true.executable=cat |
|
531 | true.executable=cat | |
532 | # hg update -C 1 |
|
532 | # hg update -C 1 | |
533 | $ hg merge -r 2 --config ui.merge=internal:prompt |
|
533 | $ hg merge -r 2 --config ui.merge=internal:prompt | |
534 | keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for f? u |
|
534 | keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for f? u | |
535 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
535 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
536 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
536 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
537 | [1] |
|
537 | [1] | |
538 | $ aftermerge |
|
538 | $ aftermerge | |
539 | # cat f |
|
539 | # cat f | |
540 | revision 1 |
|
540 | revision 1 | |
541 | space |
|
541 | space | |
542 | # hg stat |
|
542 | # hg stat | |
543 | M f |
|
543 | M f | |
544 | # hg resolve --list |
|
544 | # hg resolve --list | |
545 | U f |
|
545 | U f | |
546 |
|
546 | |||
547 | ui.merge specifies :prompt, with 'leave unresolved' chosen |
|
547 | ui.merge specifies :prompt, with 'leave unresolved' chosen | |
548 |
|
548 | |||
549 | $ beforemerge |
|
549 | $ beforemerge | |
550 | [merge-tools] |
|
550 | [merge-tools] | |
551 | false.whatever= |
|
551 | false.whatever= | |
552 | true.priority=1 |
|
552 | true.priority=1 | |
553 | true.executable=cat |
|
553 | true.executable=cat | |
554 | # hg update -C 1 |
|
554 | # hg update -C 1 | |
555 | $ hg merge -r 2 --config ui.merge=:prompt --config ui.interactive=True << EOF |
|
555 | $ hg merge -r 2 --config ui.merge=:prompt --config ui.interactive=True << EOF | |
556 | > u |
|
556 | > u | |
557 | > EOF |
|
557 | > EOF | |
558 | keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for f? u |
|
558 | keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for f? u | |
559 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
559 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
560 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
560 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
561 | [1] |
|
561 | [1] | |
562 | $ aftermerge |
|
562 | $ aftermerge | |
563 | # cat f |
|
563 | # cat f | |
564 | revision 1 |
|
564 | revision 1 | |
565 | space |
|
565 | space | |
566 | # hg stat |
|
566 | # hg stat | |
567 | M f |
|
567 | M f | |
568 | # hg resolve --list |
|
568 | # hg resolve --list | |
569 | U f |
|
569 | U f | |
570 |
|
570 | |||
571 | prompt with EOF |
|
571 | prompt with EOF | |
572 |
|
572 | |||
573 | $ beforemerge |
|
573 | $ beforemerge | |
574 | [merge-tools] |
|
574 | [merge-tools] | |
575 | false.whatever= |
|
575 | false.whatever= | |
576 | true.priority=1 |
|
576 | true.priority=1 | |
577 | true.executable=cat |
|
577 | true.executable=cat | |
578 | # hg update -C 1 |
|
578 | # hg update -C 1 | |
579 | $ hg merge -r 2 --config ui.merge=internal:prompt --config ui.interactive=true |
|
579 | $ hg merge -r 2 --config ui.merge=internal:prompt --config ui.interactive=true | |
580 | keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for f? |
|
580 | keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for f? | |
581 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
581 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
582 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
582 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
583 | [1] |
|
583 | [1] | |
584 | $ aftermerge |
|
584 | $ aftermerge | |
585 | # cat f |
|
585 | # cat f | |
586 | revision 1 |
|
586 | revision 1 | |
587 | space |
|
587 | space | |
588 | # hg stat |
|
588 | # hg stat | |
589 | M f |
|
589 | M f | |
590 | # hg resolve --list |
|
590 | # hg resolve --list | |
591 | U f |
|
591 | U f | |
592 | $ hg resolve --all --config ui.merge=internal:prompt --config ui.interactive=true |
|
592 | $ hg resolve --all --config ui.merge=internal:prompt --config ui.interactive=true | |
593 | keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for f? |
|
593 | keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for f? | |
594 | [1] |
|
594 | [1] | |
595 | $ aftermerge |
|
595 | $ aftermerge | |
596 | # cat f |
|
596 | # cat f | |
597 | revision 1 |
|
597 | revision 1 | |
598 | space |
|
598 | space | |
599 | # hg stat |
|
599 | # hg stat | |
600 | M f |
|
600 | M f | |
601 | ? f.orig |
|
601 | ? f.orig | |
602 | # hg resolve --list |
|
602 | # hg resolve --list | |
603 | U f |
|
603 | U f | |
604 | $ rm f |
|
604 | $ rm f | |
605 | $ hg resolve --all --config ui.merge=internal:prompt --config ui.interactive=true |
|
605 | $ hg resolve --all --config ui.merge=internal:prompt --config ui.interactive=true | |
606 | keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for f? |
|
606 | keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for f? | |
607 | [1] |
|
607 | [1] | |
608 | $ aftermerge |
|
608 | $ aftermerge | |
609 | # cat f |
|
609 | # cat f | |
610 | revision 1 |
|
610 | revision 1 | |
611 | space |
|
611 | space | |
612 | # hg stat |
|
612 | # hg stat | |
613 | M f |
|
613 | M f | |
614 | # hg resolve --list |
|
614 | # hg resolve --list | |
615 | U f |
|
615 | U f | |
616 | $ hg resolve --all --config ui.merge=internal:prompt |
|
616 | $ hg resolve --all --config ui.merge=internal:prompt | |
617 | keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for f? u |
|
617 | keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved for f? u | |
618 | [1] |
|
618 | [1] | |
619 | $ aftermerge |
|
619 | $ aftermerge | |
620 | # cat f |
|
620 | # cat f | |
621 | revision 1 |
|
621 | revision 1 | |
622 | space |
|
622 | space | |
623 | # hg stat |
|
623 | # hg stat | |
624 | M f |
|
624 | M f | |
625 | ? f.orig |
|
625 | ? f.orig | |
626 | # hg resolve --list |
|
626 | # hg resolve --list | |
627 | U f |
|
627 | U f | |
628 |
|
628 | |||
629 | ui.merge specifies internal:dump: |
|
629 | ui.merge specifies internal:dump: | |
630 |
|
630 | |||
631 | $ beforemerge |
|
631 | $ beforemerge | |
632 | [merge-tools] |
|
632 | [merge-tools] | |
633 | false.whatever= |
|
633 | false.whatever= | |
634 | true.priority=1 |
|
634 | true.priority=1 | |
635 | true.executable=cat |
|
635 | true.executable=cat | |
636 | # hg update -C 1 |
|
636 | # hg update -C 1 | |
637 | $ hg merge -r 2 --config ui.merge=internal:dump |
|
637 | $ hg merge -r 2 --config ui.merge=internal:dump | |
638 | merging f |
|
638 | merging f | |
639 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
639 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
640 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
640 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
641 | [1] |
|
641 | [1] | |
642 | $ aftermerge |
|
642 | $ aftermerge | |
643 | # cat f |
|
643 | # cat f | |
644 | revision 1 |
|
644 | revision 1 | |
645 | space |
|
645 | space | |
646 | # hg stat |
|
646 | # hg stat | |
647 | M f |
|
647 | M f | |
648 | ? f.base |
|
648 | ? f.base | |
649 | ? f.local |
|
649 | ? f.local | |
650 | ? f.orig |
|
650 | ? f.orig | |
651 | ? f.other |
|
651 | ? f.other | |
652 | # hg resolve --list |
|
652 | # hg resolve --list | |
653 | U f |
|
653 | U f | |
654 |
|
654 | |||
655 | f.base: |
|
655 | f.base: | |
656 |
|
656 | |||
657 | $ cat f.base |
|
657 | $ cat f.base | |
658 | revision 0 |
|
658 | revision 0 | |
659 | space |
|
659 | space | |
660 |
|
660 | |||
661 | f.local: |
|
661 | f.local: | |
662 |
|
662 | |||
663 | $ cat f.local |
|
663 | $ cat f.local | |
664 | revision 1 |
|
664 | revision 1 | |
665 | space |
|
665 | space | |
666 |
|
666 | |||
667 | f.other: |
|
667 | f.other: | |
668 |
|
668 | |||
669 | $ cat f.other |
|
669 | $ cat f.other | |
670 | revision 2 |
|
670 | revision 2 | |
671 | space |
|
671 | space | |
672 | $ rm f.base f.local f.other |
|
672 | $ rm f.base f.local f.other | |
673 |
|
673 | |||
674 | check that internal:dump doesn't dump files if premerge runs |
|
674 | check that internal:dump doesn't dump files if premerge runs | |
675 | successfully |
|
675 | successfully | |
676 |
|
676 | |||
677 | $ beforemerge |
|
677 | $ beforemerge | |
678 | [merge-tools] |
|
678 | [merge-tools] | |
679 | false.whatever= |
|
679 | false.whatever= | |
680 | true.priority=1 |
|
680 | true.priority=1 | |
681 | true.executable=cat |
|
681 | true.executable=cat | |
682 | # hg update -C 1 |
|
682 | # hg update -C 1 | |
683 | $ hg merge -r 3 --config ui.merge=internal:dump |
|
683 | $ hg merge -r 3 --config ui.merge=internal:dump | |
684 | merging f |
|
684 | merging f | |
685 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
685 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
686 | (branch merge, don't forget to commit) |
|
686 | (branch merge, don't forget to commit) | |
687 |
|
687 | |||
688 | $ aftermerge |
|
688 | $ aftermerge | |
689 | # cat f |
|
689 | # cat f | |
690 | revision 1 |
|
690 | revision 1 | |
691 | space |
|
691 | space | |
692 | revision 3 |
|
692 | revision 3 | |
693 | # hg stat |
|
693 | # hg stat | |
694 | M f |
|
694 | M f | |
695 | # hg resolve --list |
|
695 | # hg resolve --list | |
696 | R f |
|
696 | R f | |
697 |
|
697 | |||
698 | check that internal:forcedump dumps files, even if local and other can |
|
698 | check that internal:forcedump dumps files, even if local and other can | |
699 | be merged easily |
|
699 | be merged easily | |
700 |
|
700 | |||
701 | $ beforemerge |
|
701 | $ beforemerge | |
702 | [merge-tools] |
|
702 | [merge-tools] | |
703 | false.whatever= |
|
703 | false.whatever= | |
704 | true.priority=1 |
|
704 | true.priority=1 | |
705 | true.executable=cat |
|
705 | true.executable=cat | |
706 | # hg update -C 1 |
|
706 | # hg update -C 1 | |
707 | $ hg merge -r 3 --config ui.merge=internal:forcedump |
|
707 | $ hg merge -r 3 --config ui.merge=internal:forcedump | |
708 | merging f |
|
708 | merging f | |
709 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
709 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
710 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
710 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
711 | [1] |
|
711 | [1] | |
712 | $ aftermerge |
|
712 | $ aftermerge | |
713 | # cat f |
|
713 | # cat f | |
714 | revision 1 |
|
714 | revision 1 | |
715 | space |
|
715 | space | |
716 | # hg stat |
|
716 | # hg stat | |
717 | M f |
|
717 | M f | |
718 | ? f.base |
|
718 | ? f.base | |
719 | ? f.local |
|
719 | ? f.local | |
720 | ? f.orig |
|
720 | ? f.orig | |
721 | ? f.other |
|
721 | ? f.other | |
722 | # hg resolve --list |
|
722 | # hg resolve --list | |
723 | U f |
|
723 | U f | |
724 |
|
724 | |||
725 | $ cat f.base |
|
725 | $ cat f.base | |
726 | revision 0 |
|
726 | revision 0 | |
727 | space |
|
727 | space | |
728 |
|
728 | |||
729 | $ cat f.local |
|
729 | $ cat f.local | |
730 | revision 1 |
|
730 | revision 1 | |
731 | space |
|
731 | space | |
732 |
|
732 | |||
733 | $ cat f.other |
|
733 | $ cat f.other | |
734 | revision 0 |
|
734 | revision 0 | |
735 | space |
|
735 | space | |
736 | revision 3 |
|
736 | revision 3 | |
737 |
|
737 | |||
738 | $ rm -f f.base f.local f.other |
|
738 | $ rm -f f.base f.local f.other | |
739 |
|
739 | |||
740 | ui.merge specifies internal:other but is overruled by pattern for false: |
|
740 | ui.merge specifies internal:other but is overruled by pattern for false: | |
741 |
|
741 | |||
742 | $ beforemerge |
|
742 | $ beforemerge | |
743 | [merge-tools] |
|
743 | [merge-tools] | |
744 | false.whatever= |
|
744 | false.whatever= | |
745 | true.priority=1 |
|
745 | true.priority=1 | |
746 | true.executable=cat |
|
746 | true.executable=cat | |
747 | # hg update -C 1 |
|
747 | # hg update -C 1 | |
748 | $ hg merge -r 2 --config ui.merge=internal:other --config merge-patterns.f=false |
|
748 | $ hg merge -r 2 --config ui.merge=internal:other --config merge-patterns.f=false | |
749 | merging f |
|
749 | merging f | |
750 | merging f failed! |
|
750 | merging f failed! | |
751 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
751 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
752 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
752 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
753 | [1] |
|
753 | [1] | |
754 | $ aftermerge |
|
754 | $ aftermerge | |
755 | # cat f |
|
755 | # cat f | |
756 | revision 1 |
|
756 | revision 1 | |
757 | space |
|
757 | space | |
758 | # hg stat |
|
758 | # hg stat | |
759 | M f |
|
759 | M f | |
760 | ? f.orig |
|
760 | ? f.orig | |
761 | # hg resolve --list |
|
761 | # hg resolve --list | |
762 | U f |
|
762 | U f | |
763 |
|
763 | |||
764 | Premerge |
|
764 | Premerge | |
765 |
|
765 | |||
766 | ui.merge specifies internal:other but is overruled by --tool=false |
|
766 | ui.merge specifies internal:other but is overruled by --tool=false | |
767 |
|
767 | |||
768 | $ beforemerge |
|
768 | $ beforemerge | |
769 | [merge-tools] |
|
769 | [merge-tools] | |
770 | false.whatever= |
|
770 | false.whatever= | |
771 | true.priority=1 |
|
771 | true.priority=1 | |
772 | true.executable=cat |
|
772 | true.executable=cat | |
773 | # hg update -C 1 |
|
773 | # hg update -C 1 | |
774 | $ hg merge -r 2 --config ui.merge=internal:other --tool=false |
|
774 | $ hg merge -r 2 --config ui.merge=internal:other --tool=false | |
775 | merging f |
|
775 | merging f | |
776 | merging f failed! |
|
776 | merging f failed! | |
777 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
777 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
778 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
778 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
779 | [1] |
|
779 | [1] | |
780 | $ aftermerge |
|
780 | $ aftermerge | |
781 | # cat f |
|
781 | # cat f | |
782 | revision 1 |
|
782 | revision 1 | |
783 | space |
|
783 | space | |
784 | # hg stat |
|
784 | # hg stat | |
785 | M f |
|
785 | M f | |
786 | ? f.orig |
|
786 | ? f.orig | |
787 | # hg resolve --list |
|
787 | # hg resolve --list | |
788 | U f |
|
788 | U f | |
789 |
|
789 | |||
790 | HGMERGE specifies internal:other but is overruled by --tool=false |
|
790 | HGMERGE specifies internal:other but is overruled by --tool=false | |
791 |
|
791 | |||
792 | $ HGMERGE=internal:other ; export HGMERGE |
|
792 | $ HGMERGE=internal:other ; export HGMERGE | |
793 | $ beforemerge |
|
793 | $ beforemerge | |
794 | [merge-tools] |
|
794 | [merge-tools] | |
795 | false.whatever= |
|
795 | false.whatever= | |
796 | true.priority=1 |
|
796 | true.priority=1 | |
797 | true.executable=cat |
|
797 | true.executable=cat | |
798 | # hg update -C 1 |
|
798 | # hg update -C 1 | |
799 | $ hg merge -r 2 --tool=false |
|
799 | $ hg merge -r 2 --tool=false | |
800 | merging f |
|
800 | merging f | |
801 | merging f failed! |
|
801 | merging f failed! | |
802 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
802 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
803 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
803 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
804 | [1] |
|
804 | [1] | |
805 | $ aftermerge |
|
805 | $ aftermerge | |
806 | # cat f |
|
806 | # cat f | |
807 | revision 1 |
|
807 | revision 1 | |
808 | space |
|
808 | space | |
809 | # hg stat |
|
809 | # hg stat | |
810 | M f |
|
810 | M f | |
811 | ? f.orig |
|
811 | ? f.orig | |
812 | # hg resolve --list |
|
812 | # hg resolve --list | |
813 | U f |
|
813 | U f | |
814 |
|
814 | |||
815 | $ unset HGMERGE # make sure HGMERGE doesn't interfere with remaining tests |
|
815 | $ unset HGMERGE # make sure HGMERGE doesn't interfere with remaining tests | |
816 |
|
816 | |||
817 | update is a merge ... |
|
817 | update is a merge ... | |
818 |
|
818 | |||
819 | (this also tests that files reverted with '--rev REV' are treated as |
|
819 | (this also tests that files reverted with '--rev REV' are treated as | |
820 | "modified", even if none of mode, size and timestamp of them isn't |
|
820 | "modified", even if none of mode, size and timestamp of them isn't | |
821 | changed on the filesystem (see also issue4583)) |
|
821 | changed on the filesystem (see also issue4583)) | |
822 |
|
822 | |||
823 | $ cat >> $HGRCPATH <<EOF |
|
823 | $ cat >> $HGRCPATH <<EOF | |
824 | > [fakedirstatewritetime] |
|
824 | > [fakedirstatewritetime] | |
825 | > # emulate invoking dirstate.write() via repo.status() |
|
825 | > # emulate invoking dirstate.write() via repo.status() | |
826 | > # at 2000-01-01 00:00 |
|
826 | > # at 2000-01-01 00:00 | |
827 | > fakenow = 200001010000 |
|
827 | > fakenow = 200001010000 | |
828 | > EOF |
|
828 | > EOF | |
829 |
|
829 | |||
830 | $ beforemerge |
|
830 | $ beforemerge | |
831 | [merge-tools] |
|
831 | [merge-tools] | |
832 | false.whatever= |
|
832 | false.whatever= | |
833 | true.priority=1 |
|
833 | true.priority=1 | |
834 | true.executable=cat |
|
834 | true.executable=cat | |
835 | # hg update -C 1 |
|
835 | # hg update -C 1 | |
836 | $ hg update -q 0 |
|
836 | $ hg update -q 0 | |
837 | $ f -s f |
|
837 | $ f -s f | |
838 | f: size=17 |
|
838 | f: size=17 | |
839 | $ touch -t 200001010000 f |
|
839 | $ touch -t 200001010000 f | |
840 | $ hg debugrebuildstate |
|
840 | $ hg debugrebuildstate | |
841 | $ cat >> $HGRCPATH <<EOF |
|
841 | $ cat >> $HGRCPATH <<EOF | |
842 | > [extensions] |
|
842 | > [extensions] | |
843 | > fakedirstatewritetime = $TESTDIR/fakedirstatewritetime.py |
|
843 | > fakedirstatewritetime = $TESTDIR/fakedirstatewritetime.py | |
844 | > EOF |
|
844 | > EOF | |
845 | $ hg revert -q -r 1 . |
|
845 | $ hg revert -q -r 1 . | |
846 | $ cat >> $HGRCPATH <<EOF |
|
846 | $ cat >> $HGRCPATH <<EOF | |
847 | > [extensions] |
|
847 | > [extensions] | |
848 | > fakedirstatewritetime = ! |
|
848 | > fakedirstatewritetime = ! | |
849 | > EOF |
|
849 | > EOF | |
850 | $ f -s f |
|
850 | $ f -s f | |
851 | f: size=17 |
|
851 | f: size=17 | |
852 | $ touch -t 200001010000 f |
|
852 | $ touch -t 200001010000 f | |
853 | $ hg status f |
|
853 | $ hg status f | |
854 | M f |
|
854 | M f | |
855 | $ hg update -r 2 |
|
855 | $ hg update -r 2 | |
856 | merging f |
|
856 | merging f | |
857 | revision 1 |
|
857 | revision 1 | |
858 | space |
|
858 | space | |
859 | revision 0 |
|
859 | revision 0 | |
860 | space |
|
860 | space | |
861 | revision 2 |
|
861 | revision 2 | |
862 | space |
|
862 | space | |
863 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
863 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
864 | $ aftermerge |
|
864 | $ aftermerge | |
865 | # cat f |
|
865 | # cat f | |
866 | revision 1 |
|
866 | revision 1 | |
867 | space |
|
867 | space | |
868 | # hg stat |
|
868 | # hg stat | |
869 | M f |
|
869 | M f | |
870 | # hg resolve --list |
|
870 | # hg resolve --list | |
871 | R f |
|
871 | R f | |
872 |
|
872 | |||
873 | update should also have --tool |
|
873 | update should also have --tool | |
874 |
|
874 | |||
875 | $ beforemerge |
|
875 | $ beforemerge | |
876 | [merge-tools] |
|
876 | [merge-tools] | |
877 | false.whatever= |
|
877 | false.whatever= | |
878 | true.priority=1 |
|
878 | true.priority=1 | |
879 | true.executable=cat |
|
879 | true.executable=cat | |
880 | # hg update -C 1 |
|
880 | # hg update -C 1 | |
881 | $ hg update -q 0 |
|
881 | $ hg update -q 0 | |
882 | $ f -s f |
|
882 | $ f -s f | |
883 | f: size=17 |
|
883 | f: size=17 | |
884 | $ touch -t 200001010000 f |
|
884 | $ touch -t 200001010000 f | |
885 | $ hg debugrebuildstate |
|
885 | $ hg debugrebuildstate | |
886 | $ cat >> $HGRCPATH <<EOF |
|
886 | $ cat >> $HGRCPATH <<EOF | |
887 | > [extensions] |
|
887 | > [extensions] | |
888 | > fakedirstatewritetime = $TESTDIR/fakedirstatewritetime.py |
|
888 | > fakedirstatewritetime = $TESTDIR/fakedirstatewritetime.py | |
889 | > EOF |
|
889 | > EOF | |
890 | $ hg revert -q -r 1 . |
|
890 | $ hg revert -q -r 1 . | |
891 | $ cat >> $HGRCPATH <<EOF |
|
891 | $ cat >> $HGRCPATH <<EOF | |
892 | > [extensions] |
|
892 | > [extensions] | |
893 | > fakedirstatewritetime = ! |
|
893 | > fakedirstatewritetime = ! | |
894 | > EOF |
|
894 | > EOF | |
895 | $ f -s f |
|
895 | $ f -s f | |
896 | f: size=17 |
|
896 | f: size=17 | |
897 | $ touch -t 200001010000 f |
|
897 | $ touch -t 200001010000 f | |
898 | $ hg status f |
|
898 | $ hg status f | |
899 | M f |
|
899 | M f | |
900 | $ hg update -r 2 --tool false |
|
900 | $ hg update -r 2 --tool false | |
901 | merging f |
|
901 | merging f | |
902 | merging f failed! |
|
902 | merging f failed! | |
903 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
903 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
904 | use 'hg resolve' to retry unresolved file merges |
|
904 | use 'hg resolve' to retry unresolved file merges | |
905 | [1] |
|
905 | [1] | |
906 | $ aftermerge |
|
906 | $ aftermerge | |
907 | # cat f |
|
907 | # cat f | |
908 | revision 1 |
|
908 | revision 1 | |
909 | space |
|
909 | space | |
910 | # hg stat |
|
910 | # hg stat | |
911 | M f |
|
911 | M f | |
912 | ? f.orig |
|
912 | ? f.orig | |
913 | # hg resolve --list |
|
913 | # hg resolve --list | |
914 | U f |
|
914 | U f | |
915 |
|
915 | |||
916 | Default is silent simplemerge: |
|
916 | Default is silent simplemerge: | |
917 |
|
917 | |||
918 | $ beforemerge |
|
918 | $ beforemerge | |
919 | [merge-tools] |
|
919 | [merge-tools] | |
920 | false.whatever= |
|
920 | false.whatever= | |
921 | true.priority=1 |
|
921 | true.priority=1 | |
922 | true.executable=cat |
|
922 | true.executable=cat | |
923 | # hg update -C 1 |
|
923 | # hg update -C 1 | |
924 | $ hg merge -r 3 |
|
924 | $ hg merge -r 3 | |
925 | merging f |
|
925 | merging f | |
926 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
926 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
927 | (branch merge, don't forget to commit) |
|
927 | (branch merge, don't forget to commit) | |
928 | $ aftermerge |
|
928 | $ aftermerge | |
929 | # cat f |
|
929 | # cat f | |
930 | revision 1 |
|
930 | revision 1 | |
931 | space |
|
931 | space | |
932 | revision 3 |
|
932 | revision 3 | |
933 | # hg stat |
|
933 | # hg stat | |
934 | M f |
|
934 | M f | |
935 | # hg resolve --list |
|
935 | # hg resolve --list | |
936 | R f |
|
936 | R f | |
937 |
|
937 | |||
938 | .premerge=True is same: |
|
938 | .premerge=True is same: | |
939 |
|
939 | |||
940 | $ beforemerge |
|
940 | $ beforemerge | |
941 | [merge-tools] |
|
941 | [merge-tools] | |
942 | false.whatever= |
|
942 | false.whatever= | |
943 | true.priority=1 |
|
943 | true.priority=1 | |
944 | true.executable=cat |
|
944 | true.executable=cat | |
945 | # hg update -C 1 |
|
945 | # hg update -C 1 | |
946 | $ hg merge -r 3 --config merge-tools.true.premerge=True |
|
946 | $ hg merge -r 3 --config merge-tools.true.premerge=True | |
947 | merging f |
|
947 | merging f | |
948 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
948 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
949 | (branch merge, don't forget to commit) |
|
949 | (branch merge, don't forget to commit) | |
950 | $ aftermerge |
|
950 | $ aftermerge | |
951 | # cat f |
|
951 | # cat f | |
952 | revision 1 |
|
952 | revision 1 | |
953 | space |
|
953 | space | |
954 | revision 3 |
|
954 | revision 3 | |
955 | # hg stat |
|
955 | # hg stat | |
956 | M f |
|
956 | M f | |
957 | # hg resolve --list |
|
957 | # hg resolve --list | |
958 | R f |
|
958 | R f | |
959 |
|
959 | |||
960 | .premerge=False executes merge-tool: |
|
960 | .premerge=False executes merge-tool: | |
961 |
|
961 | |||
962 | $ beforemerge |
|
962 | $ beforemerge | |
963 | [merge-tools] |
|
963 | [merge-tools] | |
964 | false.whatever= |
|
964 | false.whatever= | |
965 | true.priority=1 |
|
965 | true.priority=1 | |
966 | true.executable=cat |
|
966 | true.executable=cat | |
967 | # hg update -C 1 |
|
967 | # hg update -C 1 | |
968 | $ hg merge -r 3 --config merge-tools.true.premerge=False |
|
968 | $ hg merge -r 3 --config merge-tools.true.premerge=False | |
969 | merging f |
|
969 | merging f | |
970 | revision 1 |
|
970 | revision 1 | |
971 | space |
|
971 | space | |
972 | revision 0 |
|
972 | revision 0 | |
973 | space |
|
973 | space | |
974 | revision 0 |
|
974 | revision 0 | |
975 | space |
|
975 | space | |
976 | revision 3 |
|
976 | revision 3 | |
977 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
977 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
978 | (branch merge, don't forget to commit) |
|
978 | (branch merge, don't forget to commit) | |
979 | $ aftermerge |
|
979 | $ aftermerge | |
980 | # cat f |
|
980 | # cat f | |
981 | revision 1 |
|
981 | revision 1 | |
982 | space |
|
982 | space | |
983 | # hg stat |
|
983 | # hg stat | |
984 | M f |
|
984 | M f | |
985 | # hg resolve --list |
|
985 | # hg resolve --list | |
986 | R f |
|
986 | R f | |
987 |
|
987 | |||
988 | premerge=keep keeps conflict markers in: |
|
988 | premerge=keep keeps conflict markers in: | |
989 |
|
989 | |||
990 | $ beforemerge |
|
990 | $ beforemerge | |
991 | [merge-tools] |
|
991 | [merge-tools] | |
992 | false.whatever= |
|
992 | false.whatever= | |
993 | true.priority=1 |
|
993 | true.priority=1 | |
994 | true.executable=cat |
|
994 | true.executable=cat | |
995 | # hg update -C 1 |
|
995 | # hg update -C 1 | |
996 | $ hg merge -r 4 --config merge-tools.true.premerge=keep |
|
996 | $ hg merge -r 4 --config merge-tools.true.premerge=keep | |
997 | merging f |
|
997 | merging f | |
998 | <<<<<<< working copy: ef83787e2614 - test: revision 1 |
|
998 | <<<<<<< working copy: ef83787e2614 - test: revision 1 | |
999 | revision 1 |
|
999 | revision 1 | |
1000 | space |
|
1000 | space | |
1001 | ======= |
|
1001 | ======= | |
1002 | revision 4 |
|
1002 | revision 4 | |
1003 | >>>>>>> merge rev: 81448d39c9a0 - test: revision 4 |
|
1003 | >>>>>>> merge rev: 81448d39c9a0 - test: revision 4 | |
1004 | revision 0 |
|
1004 | revision 0 | |
1005 | space |
|
1005 | space | |
1006 | revision 4 |
|
1006 | revision 4 | |
1007 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1007 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1008 | (branch merge, don't forget to commit) |
|
1008 | (branch merge, don't forget to commit) | |
1009 | $ aftermerge |
|
1009 | $ aftermerge | |
1010 | # cat f |
|
1010 | # cat f | |
1011 | <<<<<<< working copy: ef83787e2614 - test: revision 1 |
|
1011 | <<<<<<< working copy: ef83787e2614 - test: revision 1 | |
1012 | revision 1 |
|
1012 | revision 1 | |
1013 | space |
|
1013 | space | |
1014 | ======= |
|
1014 | ======= | |
1015 | revision 4 |
|
1015 | revision 4 | |
1016 | >>>>>>> merge rev: 81448d39c9a0 - test: revision 4 |
|
1016 | >>>>>>> merge rev: 81448d39c9a0 - test: revision 4 | |
1017 | # hg stat |
|
1017 | # hg stat | |
1018 | M f |
|
1018 | M f | |
1019 | # hg resolve --list |
|
1019 | # hg resolve --list | |
1020 | R f |
|
1020 | R f | |
1021 |
|
1021 | |||
1022 | premerge=keep-merge3 keeps conflict markers with base content: |
|
1022 | premerge=keep-merge3 keeps conflict markers with base content: | |
1023 |
|
1023 | |||
1024 | $ beforemerge |
|
1024 | $ beforemerge | |
1025 | [merge-tools] |
|
1025 | [merge-tools] | |
1026 | false.whatever= |
|
1026 | false.whatever= | |
1027 | true.priority=1 |
|
1027 | true.priority=1 | |
1028 | true.executable=cat |
|
1028 | true.executable=cat | |
1029 | # hg update -C 1 |
|
1029 | # hg update -C 1 | |
1030 | $ hg merge -r 4 --config merge-tools.true.premerge=keep-merge3 |
|
1030 | $ hg merge -r 4 --config merge-tools.true.premerge=keep-merge3 | |
1031 | merging f |
|
1031 | merging f | |
1032 | <<<<<<< working copy: ef83787e2614 - test: revision 1 |
|
1032 | <<<<<<< working copy: ef83787e2614 - test: revision 1 | |
1033 | revision 1 |
|
1033 | revision 1 | |
1034 | space |
|
1034 | space | |
1035 | ||||||| base |
|
1035 | ||||||| base | |
1036 | revision 0 |
|
1036 | revision 0 | |
1037 | space |
|
1037 | space | |
1038 | ======= |
|
1038 | ======= | |
1039 | revision 4 |
|
1039 | revision 4 | |
1040 | >>>>>>> merge rev: 81448d39c9a0 - test: revision 4 |
|
1040 | >>>>>>> merge rev: 81448d39c9a0 - test: revision 4 | |
1041 | revision 0 |
|
1041 | revision 0 | |
1042 | space |
|
1042 | space | |
1043 | revision 4 |
|
1043 | revision 4 | |
1044 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1044 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1045 | (branch merge, don't forget to commit) |
|
1045 | (branch merge, don't forget to commit) | |
1046 | $ aftermerge |
|
1046 | $ aftermerge | |
1047 | # cat f |
|
1047 | # cat f | |
1048 | <<<<<<< working copy: ef83787e2614 - test: revision 1 |
|
1048 | <<<<<<< working copy: ef83787e2614 - test: revision 1 | |
1049 | revision 1 |
|
1049 | revision 1 | |
1050 | space |
|
1050 | space | |
1051 | ||||||| base |
|
1051 | ||||||| base | |
1052 | revision 0 |
|
1052 | revision 0 | |
1053 | space |
|
1053 | space | |
1054 | ======= |
|
1054 | ======= | |
1055 | revision 4 |
|
1055 | revision 4 | |
1056 | >>>>>>> merge rev: 81448d39c9a0 - test: revision 4 |
|
1056 | >>>>>>> merge rev: 81448d39c9a0 - test: revision 4 | |
1057 | # hg stat |
|
1057 | # hg stat | |
1058 | M f |
|
1058 | M f | |
1059 | # hg resolve --list |
|
1059 | # hg resolve --list | |
1060 | R f |
|
1060 | R f | |
1061 |
|
1061 | |||
1062 | premerge=keep respects ui.mergemarkers=basic: |
|
1062 | premerge=keep respects ui.mergemarkers=basic: | |
1063 |
|
1063 | |||
1064 | $ beforemerge |
|
1064 | $ beforemerge | |
1065 | [merge-tools] |
|
1065 | [merge-tools] | |
1066 | false.whatever= |
|
1066 | false.whatever= | |
1067 | true.priority=1 |
|
1067 | true.priority=1 | |
1068 | true.executable=cat |
|
1068 | true.executable=cat | |
1069 | # hg update -C 1 |
|
1069 | # hg update -C 1 | |
1070 | $ hg merge -r 4 --config merge-tools.true.premerge=keep --config ui.mergemarkers=basic |
|
1070 | $ hg merge -r 4 --config merge-tools.true.premerge=keep --config ui.mergemarkers=basic | |
1071 | merging f |
|
1071 | merging f | |
1072 | <<<<<<< working copy |
|
1072 | <<<<<<< working copy | |
1073 | revision 1 |
|
1073 | revision 1 | |
1074 | space |
|
1074 | space | |
1075 | ======= |
|
1075 | ======= | |
1076 | revision 4 |
|
1076 | revision 4 | |
1077 | >>>>>>> merge rev |
|
1077 | >>>>>>> merge rev | |
1078 | revision 0 |
|
1078 | revision 0 | |
1079 | space |
|
1079 | space | |
1080 | revision 4 |
|
1080 | revision 4 | |
1081 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1081 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1082 | (branch merge, don't forget to commit) |
|
1082 | (branch merge, don't forget to commit) | |
1083 | $ aftermerge |
|
1083 | $ aftermerge | |
1084 | # cat f |
|
1084 | # cat f | |
1085 | <<<<<<< working copy |
|
1085 | <<<<<<< working copy | |
1086 | revision 1 |
|
1086 | revision 1 | |
1087 | space |
|
1087 | space | |
1088 | ======= |
|
1088 | ======= | |
1089 | revision 4 |
|
1089 | revision 4 | |
1090 | >>>>>>> merge rev |
|
1090 | >>>>>>> merge rev | |
1091 | # hg stat |
|
1091 | # hg stat | |
1092 | M f |
|
1092 | M f | |
1093 | # hg resolve --list |
|
1093 | # hg resolve --list | |
1094 | R f |
|
1094 | R f | |
1095 |
|
1095 | |||
1096 | premerge=keep ignores ui.mergemarkers=basic if true.mergemarkers=detailed: |
|
1096 | premerge=keep ignores ui.mergemarkers=basic if true.mergemarkers=detailed: | |
1097 |
|
1097 | |||
1098 | $ beforemerge |
|
1098 | $ beforemerge | |
1099 | [merge-tools] |
|
1099 | [merge-tools] | |
1100 | false.whatever= |
|
1100 | false.whatever= | |
1101 | true.priority=1 |
|
1101 | true.priority=1 | |
1102 | true.executable=cat |
|
1102 | true.executable=cat | |
1103 | # hg update -C 1 |
|
1103 | # hg update -C 1 | |
1104 | $ hg merge -r 4 --config merge-tools.true.premerge=keep \ |
|
1104 | $ hg merge -r 4 --config merge-tools.true.premerge=keep \ | |
1105 | > --config ui.mergemarkers=basic \ |
|
1105 | > --config ui.mergemarkers=basic \ | |
1106 | > --config merge-tools.true.mergemarkers=detailed |
|
1106 | > --config merge-tools.true.mergemarkers=detailed | |
1107 | merging f |
|
1107 | merging f | |
1108 | <<<<<<< working copy: ef83787e2614 - test: revision 1 |
|
1108 | <<<<<<< working copy: ef83787e2614 - test: revision 1 | |
1109 | revision 1 |
|
1109 | revision 1 | |
1110 | space |
|
1110 | space | |
1111 | ======= |
|
1111 | ======= | |
1112 | revision 4 |
|
1112 | revision 4 | |
1113 | >>>>>>> merge rev: 81448d39c9a0 - test: revision 4 |
|
1113 | >>>>>>> merge rev: 81448d39c9a0 - test: revision 4 | |
1114 | revision 0 |
|
1114 | revision 0 | |
1115 | space |
|
1115 | space | |
1116 | revision 4 |
|
1116 | revision 4 | |
1117 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1117 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1118 | (branch merge, don't forget to commit) |
|
1118 | (branch merge, don't forget to commit) | |
1119 | $ aftermerge |
|
1119 | $ aftermerge | |
1120 | # cat f |
|
1120 | # cat f | |
1121 | <<<<<<< working copy: ef83787e2614 - test: revision 1 |
|
1121 | <<<<<<< working copy: ef83787e2614 - test: revision 1 | |
1122 | revision 1 |
|
1122 | revision 1 | |
1123 | space |
|
1123 | space | |
1124 | ======= |
|
1124 | ======= | |
1125 | revision 4 |
|
1125 | revision 4 | |
1126 | >>>>>>> merge rev: 81448d39c9a0 - test: revision 4 |
|
1126 | >>>>>>> merge rev: 81448d39c9a0 - test: revision 4 | |
1127 | # hg stat |
|
1127 | # hg stat | |
1128 | M f |
|
1128 | M f | |
1129 | # hg resolve --list |
|
1129 | # hg resolve --list | |
1130 | R f |
|
1130 | R f | |
1131 |
|
1131 | |||
1132 | premerge=keep respects ui.mergemarkertemplate instead of |
|
1132 | premerge=keep respects ui.mergemarkertemplate instead of | |
1133 | true.mergemarkertemplate if true.mergemarkers=basic: |
|
1133 | true.mergemarkertemplate if true.mergemarkers=basic: | |
1134 |
|
1134 | |||
1135 | $ beforemerge |
|
1135 | $ beforemerge | |
1136 | [merge-tools] |
|
1136 | [merge-tools] | |
1137 | false.whatever= |
|
1137 | false.whatever= | |
1138 | true.priority=1 |
|
1138 | true.priority=1 | |
1139 | true.executable=cat |
|
1139 | true.executable=cat | |
1140 | # hg update -C 1 |
|
1140 | # hg update -C 1 | |
1141 | $ hg merge -r 4 --config merge-tools.true.premerge=keep \ |
|
1141 | $ hg merge -r 4 --config merge-tools.true.premerge=keep \ | |
1142 | > --config ui.mergemarkertemplate='uitmpl {rev}' \ |
|
1142 | > --config ui.mergemarkertemplate='uitmpl {rev}' \ | |
1143 | > --config merge-tools.true.mergemarkertemplate='tooltmpl {short(node)}' |
|
1143 | > --config merge-tools.true.mergemarkertemplate='tooltmpl {short(node)}' | |
1144 | merging f |
|
1144 | merging f | |
1145 | <<<<<<< working copy: uitmpl 1 |
|
1145 | <<<<<<< working copy: uitmpl 1 | |
1146 | revision 1 |
|
1146 | revision 1 | |
1147 | space |
|
1147 | space | |
1148 | ======= |
|
1148 | ======= | |
1149 | revision 4 |
|
1149 | revision 4 | |
1150 | >>>>>>> merge rev: uitmpl 4 |
|
1150 | >>>>>>> merge rev: uitmpl 4 | |
1151 | revision 0 |
|
1151 | revision 0 | |
1152 | space |
|
1152 | space | |
1153 | revision 4 |
|
1153 | revision 4 | |
1154 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1154 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1155 | (branch merge, don't forget to commit) |
|
1155 | (branch merge, don't forget to commit) | |
1156 | $ aftermerge |
|
1156 | $ aftermerge | |
1157 | # cat f |
|
1157 | # cat f | |
1158 | <<<<<<< working copy: uitmpl 1 |
|
1158 | <<<<<<< working copy: uitmpl 1 | |
1159 | revision 1 |
|
1159 | revision 1 | |
1160 | space |
|
1160 | space | |
1161 | ======= |
|
1161 | ======= | |
1162 | revision 4 |
|
1162 | revision 4 | |
1163 | >>>>>>> merge rev: uitmpl 4 |
|
1163 | >>>>>>> merge rev: uitmpl 4 | |
1164 | # hg stat |
|
1164 | # hg stat | |
1165 | M f |
|
1165 | M f | |
1166 | # hg resolve --list |
|
1166 | # hg resolve --list | |
1167 | R f |
|
1167 | R f | |
1168 |
|
1168 | |||
1169 | premerge=keep respects true.mergemarkertemplate instead of |
|
1169 | premerge=keep respects true.mergemarkertemplate instead of | |
1170 | true.mergemarkertemplate if true.mergemarkers=detailed: |
|
1170 | true.mergemarkertemplate if true.mergemarkers=detailed: | |
1171 |
|
1171 | |||
1172 | $ beforemerge |
|
1172 | $ beforemerge | |
1173 | [merge-tools] |
|
1173 | [merge-tools] | |
1174 | false.whatever= |
|
1174 | false.whatever= | |
1175 | true.priority=1 |
|
1175 | true.priority=1 | |
1176 | true.executable=cat |
|
1176 | true.executable=cat | |
1177 | # hg update -C 1 |
|
1177 | # hg update -C 1 | |
1178 | $ hg merge -r 4 --config merge-tools.true.premerge=keep \ |
|
1178 | $ hg merge -r 4 --config merge-tools.true.premerge=keep \ | |
1179 | > --config ui.mergemarkertemplate='uitmpl {rev}' \ |
|
1179 | > --config ui.mergemarkertemplate='uitmpl {rev}' \ | |
1180 | > --config merge-tools.true.mergemarkertemplate='tooltmpl {short(node)}' \ |
|
1180 | > --config merge-tools.true.mergemarkertemplate='tooltmpl {short(node)}' \ | |
1181 | > --config merge-tools.true.mergemarkers=detailed |
|
1181 | > --config merge-tools.true.mergemarkers=detailed | |
1182 | merging f |
|
1182 | merging f | |
1183 | <<<<<<< working copy: tooltmpl ef83787e2614 |
|
1183 | <<<<<<< working copy: tooltmpl ef83787e2614 | |
1184 | revision 1 |
|
1184 | revision 1 | |
1185 | space |
|
1185 | space | |
1186 | ======= |
|
1186 | ======= | |
1187 | revision 4 |
|
1187 | revision 4 | |
1188 | >>>>>>> merge rev: tooltmpl 81448d39c9a0 |
|
1188 | >>>>>>> merge rev: tooltmpl 81448d39c9a0 | |
1189 | revision 0 |
|
1189 | revision 0 | |
1190 | space |
|
1190 | space | |
1191 | revision 4 |
|
1191 | revision 4 | |
1192 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1192 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1193 | (branch merge, don't forget to commit) |
|
1193 | (branch merge, don't forget to commit) | |
1194 | $ aftermerge |
|
1194 | $ aftermerge | |
1195 | # cat f |
|
1195 | # cat f | |
1196 | <<<<<<< working copy: tooltmpl ef83787e2614 |
|
1196 | <<<<<<< working copy: tooltmpl ef83787e2614 | |
1197 | revision 1 |
|
1197 | revision 1 | |
1198 | space |
|
1198 | space | |
1199 | ======= |
|
1199 | ======= | |
1200 | revision 4 |
|
1200 | revision 4 | |
1201 | >>>>>>> merge rev: tooltmpl 81448d39c9a0 |
|
1201 | >>>>>>> merge rev: tooltmpl 81448d39c9a0 | |
1202 | # hg stat |
|
1202 | # hg stat | |
1203 | M f |
|
1203 | M f | |
1204 | # hg resolve --list |
|
1204 | # hg resolve --list | |
1205 | R f |
|
1205 | R f | |
1206 |
|
1206 | |||
1207 | Tool execution |
|
1207 | Tool execution | |
1208 |
|
1208 | |||
1209 | set tools.args explicit to include $base $local $other $output: |
|
1209 | set tools.args explicit to include $base $local $other $output: | |
1210 |
|
1210 | |||
1211 | $ beforemerge |
|
1211 | $ beforemerge | |
1212 | [merge-tools] |
|
1212 | [merge-tools] | |
1213 | false.whatever= |
|
1213 | false.whatever= | |
1214 | true.priority=1 |
|
1214 | true.priority=1 | |
1215 | true.executable=cat |
|
1215 | true.executable=cat | |
1216 | # hg update -C 1 |
|
1216 | # hg update -C 1 | |
1217 | $ hg merge -r 2 --config merge-tools.true.executable=head --config merge-tools.true.args='$base $local $other $output' \ |
|
1217 | $ hg merge -r 2 --config merge-tools.true.executable=head --config merge-tools.true.args='$base $local $other $output' \ | |
1218 | > | sed 's,==> .* <==,==> ... <==,g' |
|
1218 | > | sed 's,==> .* <==,==> ... <==,g' | |
1219 | merging f |
|
1219 | merging f | |
1220 | ==> ... <== |
|
1220 | ==> ... <== | |
1221 | revision 0 |
|
1221 | revision 0 | |
1222 | space |
|
1222 | space | |
1223 |
|
1223 | |||
1224 | ==> ... <== |
|
1224 | ==> ... <== | |
1225 | revision 1 |
|
1225 | revision 1 | |
1226 | space |
|
1226 | space | |
1227 |
|
1227 | |||
1228 | ==> ... <== |
|
1228 | ==> ... <== | |
1229 | revision 2 |
|
1229 | revision 2 | |
1230 | space |
|
1230 | space | |
1231 |
|
1231 | |||
1232 | ==> ... <== |
|
1232 | ==> ... <== | |
1233 | revision 1 |
|
1233 | revision 1 | |
1234 | space |
|
1234 | space | |
1235 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1235 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1236 | (branch merge, don't forget to commit) |
|
1236 | (branch merge, don't forget to commit) | |
1237 | $ aftermerge |
|
1237 | $ aftermerge | |
1238 | # cat f |
|
1238 | # cat f | |
1239 | revision 1 |
|
1239 | revision 1 | |
1240 | space |
|
1240 | space | |
1241 | # hg stat |
|
1241 | # hg stat | |
1242 | M f |
|
1242 | M f | |
1243 | # hg resolve --list |
|
1243 | # hg resolve --list | |
1244 | R f |
|
1244 | R f | |
1245 |
|
1245 | |||
1246 | Merge with "echo mergeresult > $local": |
|
1246 | Merge with "echo mergeresult > $local": | |
1247 |
|
1247 | |||
1248 | $ beforemerge |
|
1248 | $ beforemerge | |
1249 | [merge-tools] |
|
1249 | [merge-tools] | |
1250 | false.whatever= |
|
1250 | false.whatever= | |
1251 | true.priority=1 |
|
1251 | true.priority=1 | |
1252 | true.executable=cat |
|
1252 | true.executable=cat | |
1253 | # hg update -C 1 |
|
1253 | # hg update -C 1 | |
1254 | $ hg merge -r 2 --config merge-tools.true.executable=echo --config merge-tools.true.args='mergeresult > $local' |
|
1254 | $ hg merge -r 2 --config merge-tools.true.executable=echo --config merge-tools.true.args='mergeresult > $local' | |
1255 | merging f |
|
1255 | merging f | |
1256 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1256 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1257 | (branch merge, don't forget to commit) |
|
1257 | (branch merge, don't forget to commit) | |
1258 | $ aftermerge |
|
1258 | $ aftermerge | |
1259 | # cat f |
|
1259 | # cat f | |
1260 | mergeresult |
|
1260 | mergeresult | |
1261 | # hg stat |
|
1261 | # hg stat | |
1262 | M f |
|
1262 | M f | |
1263 | # hg resolve --list |
|
1263 | # hg resolve --list | |
1264 | R f |
|
1264 | R f | |
1265 |
|
1265 | |||
1266 | - and $local is the file f: |
|
1266 | - and $local is the file f: | |
1267 |
|
1267 | |||
1268 | $ beforemerge |
|
1268 | $ beforemerge | |
1269 | [merge-tools] |
|
1269 | [merge-tools] | |
1270 | false.whatever= |
|
1270 | false.whatever= | |
1271 | true.priority=1 |
|
1271 | true.priority=1 | |
1272 | true.executable=cat |
|
1272 | true.executable=cat | |
1273 | # hg update -C 1 |
|
1273 | # hg update -C 1 | |
1274 | $ hg merge -r 2 --config merge-tools.true.executable=echo --config merge-tools.true.args='mergeresult > f' |
|
1274 | $ hg merge -r 2 --config merge-tools.true.executable=echo --config merge-tools.true.args='mergeresult > f' | |
1275 | merging f |
|
1275 | merging f | |
1276 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1276 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1277 | (branch merge, don't forget to commit) |
|
1277 | (branch merge, don't forget to commit) | |
1278 | $ aftermerge |
|
1278 | $ aftermerge | |
1279 | # cat f |
|
1279 | # cat f | |
1280 | mergeresult |
|
1280 | mergeresult | |
1281 | # hg stat |
|
1281 | # hg stat | |
1282 | M f |
|
1282 | M f | |
1283 | # hg resolve --list |
|
1283 | # hg resolve --list | |
1284 | R f |
|
1284 | R f | |
1285 |
|
1285 | |||
1286 | Merge with "echo mergeresult > $output" - the variable is a bit magic: |
|
1286 | Merge with "echo mergeresult > $output" - the variable is a bit magic: | |
1287 |
|
1287 | |||
1288 | $ beforemerge |
|
1288 | $ beforemerge | |
1289 | [merge-tools] |
|
1289 | [merge-tools] | |
1290 | false.whatever= |
|
1290 | false.whatever= | |
1291 | true.priority=1 |
|
1291 | true.priority=1 | |
1292 | true.executable=cat |
|
1292 | true.executable=cat | |
1293 | # hg update -C 1 |
|
1293 | # hg update -C 1 | |
1294 | $ hg merge -r 2 --config merge-tools.true.executable=echo --config merge-tools.true.args='mergeresult > $output' |
|
1294 | $ hg merge -r 2 --config merge-tools.true.executable=echo --config merge-tools.true.args='mergeresult > $output' | |
1295 | merging f |
|
1295 | merging f | |
1296 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1296 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1297 | (branch merge, don't forget to commit) |
|
1297 | (branch merge, don't forget to commit) | |
1298 | $ aftermerge |
|
1298 | $ aftermerge | |
1299 | # cat f |
|
1299 | # cat f | |
1300 | mergeresult |
|
1300 | mergeresult | |
1301 | # hg stat |
|
1301 | # hg stat | |
1302 | M f |
|
1302 | M f | |
1303 | # hg resolve --list |
|
1303 | # hg resolve --list | |
1304 | R f |
|
1304 | R f | |
1305 |
|
1305 | |||
1306 | Merge using tool with a path that must be quoted: |
|
1306 | Merge using tool with a path that must be quoted: | |
1307 |
|
1307 | |||
1308 | $ beforemerge |
|
1308 | $ beforemerge | |
1309 | [merge-tools] |
|
1309 | [merge-tools] | |
1310 | false.whatever= |
|
1310 | false.whatever= | |
1311 | true.priority=1 |
|
1311 | true.priority=1 | |
1312 | true.executable=cat |
|
1312 | true.executable=cat | |
1313 | # hg update -C 1 |
|
1313 | # hg update -C 1 | |
1314 | $ cat <<EOF > 'my merge tool' |
|
1314 | $ cat <<EOF > 'my merge tool' | |
1315 | > cat "\$1" "\$2" "\$3" > "\$4" |
|
1315 | > cat "\$1" "\$2" "\$3" > "\$4" | |
1316 | > EOF |
|
1316 | > EOF | |
1317 | $ hg --config merge-tools.true.executable='sh' \ |
|
1317 | $ hg --config merge-tools.true.executable='sh' \ | |
1318 | > --config merge-tools.true.args='"./my merge tool" $base $local $other $output' \ |
|
1318 | > --config merge-tools.true.args='"./my merge tool" $base $local $other $output' \ | |
1319 | > merge -r 2 |
|
1319 | > merge -r 2 | |
1320 | merging f |
|
1320 | merging f | |
1321 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1321 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1322 | (branch merge, don't forget to commit) |
|
1322 | (branch merge, don't forget to commit) | |
1323 | $ rm -f 'my merge tool' |
|
1323 | $ rm -f 'my merge tool' | |
1324 | $ aftermerge |
|
1324 | $ aftermerge | |
1325 | # cat f |
|
1325 | # cat f | |
1326 | revision 0 |
|
1326 | revision 0 | |
1327 | space |
|
1327 | space | |
1328 | revision 1 |
|
1328 | revision 1 | |
1329 | space |
|
1329 | space | |
1330 | revision 2 |
|
1330 | revision 2 | |
1331 | space |
|
1331 | space | |
1332 | # hg stat |
|
1332 | # hg stat | |
1333 | M f |
|
1333 | M f | |
1334 | # hg resolve --list |
|
1334 | # hg resolve --list | |
1335 | R f |
|
1335 | R f | |
1336 |
|
1336 | |||
1337 | Merge using a tool that supports labellocal, labelother, and labelbase, checking |
|
1337 | Merge using a tool that supports labellocal, labelother, and labelbase, checking | |
1338 | that they're quoted properly as well. This is using the default 'basic' |
|
1338 | that they're quoted properly as well. This is using the default 'basic' | |
1339 | mergemarkers even though ui.mergemarkers is 'detailed', so it's ignoring both |
|
1339 | mergemarkers even though ui.mergemarkers is 'detailed', so it's ignoring both | |
1340 | mergemarkertemplate settings: |
|
1340 | mergemarkertemplate settings: | |
1341 |
|
1341 | |||
1342 | $ beforemerge |
|
1342 | $ beforemerge | |
1343 | [merge-tools] |
|
1343 | [merge-tools] | |
1344 | false.whatever= |
|
1344 | false.whatever= | |
1345 | true.priority=1 |
|
1345 | true.priority=1 | |
1346 | true.executable=cat |
|
1346 | true.executable=cat | |
1347 | # hg update -C 1 |
|
1347 | # hg update -C 1 | |
1348 | $ cat <<EOF > printargs_merge_tool |
|
1348 | $ cat <<EOF > printargs_merge_tool | |
1349 | > while test \$# -gt 0; do echo arg: \"\$1\"; shift; done |
|
1349 | > while test \$# -gt 0; do echo arg: \"\$1\"; shift; done | |
1350 | > EOF |
|
1350 | > EOF | |
1351 | $ hg --config merge-tools.true.executable='sh' \ |
|
1351 | $ hg --config merge-tools.true.executable='sh' \ | |
1352 | > --config merge-tools.true.args='./printargs_merge_tool ll:$labellocal lo: $labelother lb:$labelbase": "$base' \ |
|
1352 | > --config merge-tools.true.args='./printargs_merge_tool ll:$labellocal lo: $labelother lb:$labelbase": "$base' \ | |
1353 | > --config merge-tools.true.mergemarkertemplate='tooltmpl {short(node)}' \ |
|
1353 | > --config merge-tools.true.mergemarkertemplate='tooltmpl {short(node)}' \ | |
1354 | > --config ui.mergemarkertemplate='uitmpl {rev}' \ |
|
1354 | > --config ui.mergemarkertemplate='uitmpl {rev}' \ | |
1355 | > --config ui.mergemarkers=detailed \ |
|
1355 | > --config ui.mergemarkers=detailed \ | |
1356 | > merge -r 2 |
|
1356 | > merge -r 2 | |
1357 | merging f |
|
1357 | merging f | |
1358 | arg: "ll:working copy" |
|
1358 | arg: "ll:working copy" | |
1359 | arg: "lo:" |
|
1359 | arg: "lo:" | |
1360 | arg: "merge rev" |
|
1360 | arg: "merge rev" | |
1361 |
arg: "lb:base: |
|
1361 | arg: "lb:base: */f~base.*" (glob) | |
1362 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1362 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1363 | (branch merge, don't forget to commit) |
|
1363 | (branch merge, don't forget to commit) | |
1364 | $ rm -f 'printargs_merge_tool' |
|
1364 | $ rm -f 'printargs_merge_tool' | |
1365 |
|
1365 | |||
1366 | Merge using a tool that supports labellocal, labelother, and labelbase, checking |
|
1366 | Merge using a tool that supports labellocal, labelother, and labelbase, checking | |
1367 | that they're quoted properly as well. This is using 'detailed' mergemarkers, |
|
1367 | that they're quoted properly as well. This is using 'detailed' mergemarkers, | |
1368 | even though ui.mergemarkers is 'basic', and using the tool's |
|
1368 | even though ui.mergemarkers is 'basic', and using the tool's | |
1369 | mergemarkertemplate: |
|
1369 | mergemarkertemplate: | |
1370 |
|
1370 | |||
1371 | $ beforemerge |
|
1371 | $ beforemerge | |
1372 | [merge-tools] |
|
1372 | [merge-tools] | |
1373 | false.whatever= |
|
1373 | false.whatever= | |
1374 | true.priority=1 |
|
1374 | true.priority=1 | |
1375 | true.executable=cat |
|
1375 | true.executable=cat | |
1376 | # hg update -C 1 |
|
1376 | # hg update -C 1 | |
1377 | $ cat <<EOF > printargs_merge_tool |
|
1377 | $ cat <<EOF > printargs_merge_tool | |
1378 | > while test \$# -gt 0; do echo arg: \"\$1\"; shift; done |
|
1378 | > while test \$# -gt 0; do echo arg: \"\$1\"; shift; done | |
1379 | > EOF |
|
1379 | > EOF | |
1380 | $ hg --config merge-tools.true.executable='sh' \ |
|
1380 | $ hg --config merge-tools.true.executable='sh' \ | |
1381 | > --config merge-tools.true.args='./printargs_merge_tool ll:$labellocal lo: $labelother lb:$labelbase": "$base' \ |
|
1381 | > --config merge-tools.true.args='./printargs_merge_tool ll:$labellocal lo: $labelother lb:$labelbase": "$base' \ | |
1382 | > --config merge-tools.true.mergemarkers=detailed \ |
|
1382 | > --config merge-tools.true.mergemarkers=detailed \ | |
1383 | > --config merge-tools.true.mergemarkertemplate='tooltmpl {short(node)}' \ |
|
1383 | > --config merge-tools.true.mergemarkertemplate='tooltmpl {short(node)}' \ | |
1384 | > --config ui.mergemarkertemplate='uitmpl {rev}' \ |
|
1384 | > --config ui.mergemarkertemplate='uitmpl {rev}' \ | |
1385 | > --config ui.mergemarkers=basic \ |
|
1385 | > --config ui.mergemarkers=basic \ | |
1386 | > merge -r 2 |
|
1386 | > merge -r 2 | |
1387 | merging f |
|
1387 | merging f | |
1388 | arg: "ll:working copy: tooltmpl ef83787e2614" |
|
1388 | arg: "ll:working copy: tooltmpl ef83787e2614" | |
1389 | arg: "lo:" |
|
1389 | arg: "lo:" | |
1390 | arg: "merge rev: tooltmpl 0185f4e0cf02" |
|
1390 | arg: "merge rev: tooltmpl 0185f4e0cf02" | |
1391 |
arg: "lb:base: |
|
1391 | arg: "lb:base: */f~base.*" (glob) | |
1392 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1392 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1393 | (branch merge, don't forget to commit) |
|
1393 | (branch merge, don't forget to commit) | |
1394 | $ rm -f 'printargs_merge_tool' |
|
1394 | $ rm -f 'printargs_merge_tool' | |
1395 |
|
1395 | |||
1396 | The merge tool still gets labellocal and labelother as 'basic' even when |
|
1396 | The merge tool still gets labellocal and labelother as 'basic' even when | |
1397 | premerge=keep is used and has 'detailed' markers: |
|
1397 | premerge=keep is used and has 'detailed' markers: | |
1398 |
|
1398 | |||
1399 | $ beforemerge |
|
1399 | $ beforemerge | |
1400 | [merge-tools] |
|
1400 | [merge-tools] | |
1401 | false.whatever= |
|
1401 | false.whatever= | |
1402 | true.priority=1 |
|
1402 | true.priority=1 | |
1403 | true.executable=cat |
|
1403 | true.executable=cat | |
1404 | # hg update -C 1 |
|
1404 | # hg update -C 1 | |
1405 | $ cat <<EOF > mytool |
|
1405 | $ cat <<EOF > mytool | |
1406 | > echo labellocal: \"\$1\" |
|
1406 | > echo labellocal: \"\$1\" | |
1407 | > echo labelother: \"\$2\" |
|
1407 | > echo labelother: \"\$2\" | |
1408 | > echo "output (arg)": \"\$3\" |
|
1408 | > echo "output (arg)": \"\$3\" | |
1409 | > echo "output (contents)": |
|
1409 | > echo "output (contents)": | |
1410 | > cat "\$3" |
|
1410 | > cat "\$3" | |
1411 | > EOF |
|
1411 | > EOF | |
1412 | $ hg --config merge-tools.true.executable='sh' \ |
|
1412 | $ hg --config merge-tools.true.executable='sh' \ | |
1413 | > --config merge-tools.true.args='mytool $labellocal $labelother $output' \ |
|
1413 | > --config merge-tools.true.args='mytool $labellocal $labelother $output' \ | |
1414 | > --config merge-tools.true.premerge=keep \ |
|
1414 | > --config merge-tools.true.premerge=keep \ | |
1415 | > --config merge-tools.true.mergemarkertemplate='tooltmpl {short(node)}' \ |
|
1415 | > --config merge-tools.true.mergemarkertemplate='tooltmpl {short(node)}' \ | |
1416 | > --config ui.mergemarkertemplate='uitmpl {rev}' \ |
|
1416 | > --config ui.mergemarkertemplate='uitmpl {rev}' \ | |
1417 | > --config ui.mergemarkers=detailed \ |
|
1417 | > --config ui.mergemarkers=detailed \ | |
1418 | > merge -r 2 |
|
1418 | > merge -r 2 | |
1419 | merging f |
|
1419 | merging f | |
1420 | labellocal: "working copy" |
|
1420 | labellocal: "working copy" | |
1421 | labelother: "merge rev" |
|
1421 | labelother: "merge rev" | |
1422 | output (arg): "$TESTTMP/f" |
|
1422 | output (arg): "$TESTTMP/f" | |
1423 | output (contents): |
|
1423 | output (contents): | |
1424 | <<<<<<< working copy: uitmpl 1 |
|
1424 | <<<<<<< working copy: uitmpl 1 | |
1425 | revision 1 |
|
1425 | revision 1 | |
1426 | ======= |
|
1426 | ======= | |
1427 | revision 2 |
|
1427 | revision 2 | |
1428 | >>>>>>> merge rev: uitmpl 2 |
|
1428 | >>>>>>> merge rev: uitmpl 2 | |
1429 | space |
|
1429 | space | |
1430 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1430 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1431 | (branch merge, don't forget to commit) |
|
1431 | (branch merge, don't forget to commit) | |
1432 | $ rm -f 'mytool' |
|
1432 | $ rm -f 'mytool' | |
1433 |
|
1433 | |||
1434 | premerge=keep uses the *tool's* mergemarkertemplate if tool's |
|
1434 | premerge=keep uses the *tool's* mergemarkertemplate if tool's | |
1435 | mergemarkers=detailed; labellocal and labelother also use the tool's template |
|
1435 | mergemarkers=detailed; labellocal and labelother also use the tool's template | |
1436 |
|
1436 | |||
1437 | $ beforemerge |
|
1437 | $ beforemerge | |
1438 | [merge-tools] |
|
1438 | [merge-tools] | |
1439 | false.whatever= |
|
1439 | false.whatever= | |
1440 | true.priority=1 |
|
1440 | true.priority=1 | |
1441 | true.executable=cat |
|
1441 | true.executable=cat | |
1442 | # hg update -C 1 |
|
1442 | # hg update -C 1 | |
1443 | $ cat <<EOF > mytool |
|
1443 | $ cat <<EOF > mytool | |
1444 | > echo labellocal: \"\$1\" |
|
1444 | > echo labellocal: \"\$1\" | |
1445 | > echo labelother: \"\$2\" |
|
1445 | > echo labelother: \"\$2\" | |
1446 | > echo "output (arg)": \"\$3\" |
|
1446 | > echo "output (arg)": \"\$3\" | |
1447 | > echo "output (contents)": |
|
1447 | > echo "output (contents)": | |
1448 | > cat "\$3" |
|
1448 | > cat "\$3" | |
1449 | > EOF |
|
1449 | > EOF | |
1450 | $ hg --config merge-tools.true.executable='sh' \ |
|
1450 | $ hg --config merge-tools.true.executable='sh' \ | |
1451 | > --config merge-tools.true.args='mytool $labellocal $labelother $output' \ |
|
1451 | > --config merge-tools.true.args='mytool $labellocal $labelother $output' \ | |
1452 | > --config merge-tools.true.premerge=keep \ |
|
1452 | > --config merge-tools.true.premerge=keep \ | |
1453 | > --config merge-tools.true.mergemarkers=detailed \ |
|
1453 | > --config merge-tools.true.mergemarkers=detailed \ | |
1454 | > --config merge-tools.true.mergemarkertemplate='tooltmpl {short(node)}' \ |
|
1454 | > --config merge-tools.true.mergemarkertemplate='tooltmpl {short(node)}' \ | |
1455 | > --config ui.mergemarkertemplate='uitmpl {rev}' \ |
|
1455 | > --config ui.mergemarkertemplate='uitmpl {rev}' \ | |
1456 | > --config ui.mergemarkers=detailed \ |
|
1456 | > --config ui.mergemarkers=detailed \ | |
1457 | > merge -r 2 |
|
1457 | > merge -r 2 | |
1458 | merging f |
|
1458 | merging f | |
1459 | labellocal: "working copy: tooltmpl ef83787e2614" |
|
1459 | labellocal: "working copy: tooltmpl ef83787e2614" | |
1460 | labelother: "merge rev: tooltmpl 0185f4e0cf02" |
|
1460 | labelother: "merge rev: tooltmpl 0185f4e0cf02" | |
1461 | output (arg): "$TESTTMP/f" |
|
1461 | output (arg): "$TESTTMP/f" | |
1462 | output (contents): |
|
1462 | output (contents): | |
1463 | <<<<<<< working copy: tooltmpl ef83787e2614 |
|
1463 | <<<<<<< working copy: tooltmpl ef83787e2614 | |
1464 | revision 1 |
|
1464 | revision 1 | |
1465 | ======= |
|
1465 | ======= | |
1466 | revision 2 |
|
1466 | revision 2 | |
1467 | >>>>>>> merge rev: tooltmpl 0185f4e0cf02 |
|
1467 | >>>>>>> merge rev: tooltmpl 0185f4e0cf02 | |
1468 | space |
|
1468 | space | |
1469 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1469 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1470 | (branch merge, don't forget to commit) |
|
1470 | (branch merge, don't forget to commit) | |
1471 | $ rm -f 'mytool' |
|
1471 | $ rm -f 'mytool' | |
1472 |
|
1472 | |||
1473 | Issue3581: Merging a filename that needs to be quoted |
|
1473 | Issue3581: Merging a filename that needs to be quoted | |
1474 | (This test doesn't work on Windows filesystems even on Linux, so check |
|
1474 | (This test doesn't work on Windows filesystems even on Linux, so check | |
1475 | for Unix-like permission) |
|
1475 | for Unix-like permission) | |
1476 |
|
1476 | |||
1477 | #if unix-permissions |
|
1477 | #if unix-permissions | |
1478 | $ beforemerge |
|
1478 | $ beforemerge | |
1479 | [merge-tools] |
|
1479 | [merge-tools] | |
1480 | false.whatever= |
|
1480 | false.whatever= | |
1481 | true.priority=1 |
|
1481 | true.priority=1 | |
1482 | true.executable=cat |
|
1482 | true.executable=cat | |
1483 | # hg update -C 1 |
|
1483 | # hg update -C 1 | |
1484 | $ echo "revision 5" > '"; exit 1; echo "' |
|
1484 | $ echo "revision 5" > '"; exit 1; echo "' | |
1485 | $ hg commit -Am "revision 5" |
|
1485 | $ hg commit -Am "revision 5" | |
1486 | adding "; exit 1; echo " |
|
1486 | adding "; exit 1; echo " | |
1487 | warning: filename contains '"', which is reserved on Windows: '"; exit 1; echo "' |
|
1487 | warning: filename contains '"', which is reserved on Windows: '"; exit 1; echo "' | |
1488 | $ hg update -C 1 > /dev/null |
|
1488 | $ hg update -C 1 > /dev/null | |
1489 | $ echo "revision 6" > '"; exit 1; echo "' |
|
1489 | $ echo "revision 6" > '"; exit 1; echo "' | |
1490 | $ hg commit -Am "revision 6" |
|
1490 | $ hg commit -Am "revision 6" | |
1491 | adding "; exit 1; echo " |
|
1491 | adding "; exit 1; echo " | |
1492 | warning: filename contains '"', which is reserved on Windows: '"; exit 1; echo "' |
|
1492 | warning: filename contains '"', which is reserved on Windows: '"; exit 1; echo "' | |
1493 | created new head |
|
1493 | created new head | |
1494 | $ hg merge --config merge-tools.true.executable="true" -r 5 |
|
1494 | $ hg merge --config merge-tools.true.executable="true" -r 5 | |
1495 | merging "; exit 1; echo " |
|
1495 | merging "; exit 1; echo " | |
1496 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1496 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1497 | (branch merge, don't forget to commit) |
|
1497 | (branch merge, don't forget to commit) | |
1498 | $ hg update -C 1 > /dev/null |
|
1498 | $ hg update -C 1 > /dev/null | |
1499 | #endif |
|
1499 | #endif | |
1500 |
|
1500 | |||
1501 | Merge post-processing |
|
1501 | Merge post-processing | |
1502 |
|
1502 | |||
1503 | cat is a bad merge-tool and doesn't change: |
|
1503 | cat is a bad merge-tool and doesn't change: | |
1504 |
|
1504 | |||
1505 | $ beforemerge |
|
1505 | $ beforemerge | |
1506 | [merge-tools] |
|
1506 | [merge-tools] | |
1507 | false.whatever= |
|
1507 | false.whatever= | |
1508 | true.priority=1 |
|
1508 | true.priority=1 | |
1509 | true.executable=cat |
|
1509 | true.executable=cat | |
1510 | # hg update -C 1 |
|
1510 | # hg update -C 1 | |
1511 | $ hg merge -y -r 2 --config merge-tools.true.checkchanged=1 |
|
1511 | $ hg merge -y -r 2 --config merge-tools.true.checkchanged=1 | |
1512 | merging f |
|
1512 | merging f | |
1513 | revision 1 |
|
1513 | revision 1 | |
1514 | space |
|
1514 | space | |
1515 | revision 0 |
|
1515 | revision 0 | |
1516 | space |
|
1516 | space | |
1517 | revision 2 |
|
1517 | revision 2 | |
1518 | space |
|
1518 | space | |
1519 | output file f appears unchanged |
|
1519 | output file f appears unchanged | |
1520 | was merge successful (yn)? n |
|
1520 | was merge successful (yn)? n | |
1521 | merging f failed! |
|
1521 | merging f failed! | |
1522 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
1522 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
1523 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
1523 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
1524 | [1] |
|
1524 | [1] | |
1525 | $ aftermerge |
|
1525 | $ aftermerge | |
1526 | # cat f |
|
1526 | # cat f | |
1527 | revision 1 |
|
1527 | revision 1 | |
1528 | space |
|
1528 | space | |
1529 | # hg stat |
|
1529 | # hg stat | |
1530 | M f |
|
1530 | M f | |
1531 | ? f.orig |
|
1531 | ? f.orig | |
1532 | # hg resolve --list |
|
1532 | # hg resolve --list | |
1533 | U f |
|
1533 | U f | |
1534 |
|
1534 | |||
1535 | #if symlink |
|
1535 | #if symlink | |
1536 |
|
1536 | |||
1537 | internal merge cannot handle symlinks and shouldn't try: |
|
1537 | internal merge cannot handle symlinks and shouldn't try: | |
1538 |
|
1538 | |||
1539 | $ hg update -q -C 1 |
|
1539 | $ hg update -q -C 1 | |
1540 | $ rm f |
|
1540 | $ rm f | |
1541 | $ ln -s symlink f |
|
1541 | $ ln -s symlink f | |
1542 | $ hg commit -qm 'f is symlink' |
|
1542 | $ hg commit -qm 'f is symlink' | |
1543 | $ hg merge -r 2 --tool internal:merge |
|
1543 | $ hg merge -r 2 --tool internal:merge | |
1544 | merging f |
|
1544 | merging f | |
1545 | warning: internal :merge cannot merge symlinks for f |
|
1545 | warning: internal :merge cannot merge symlinks for f | |
1546 | warning: conflicts while merging f! (edit, then use 'hg resolve --mark') |
|
1546 | warning: conflicts while merging f! (edit, then use 'hg resolve --mark') | |
1547 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
1547 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
1548 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
1548 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon | |
1549 | [1] |
|
1549 | [1] | |
1550 |
|
1550 | |||
1551 | #endif |
|
1551 | #endif | |
1552 |
|
1552 | |||
1553 | Verify naming of temporary files and that extension is preserved: |
|
1553 | Verify naming of temporary files and that extension is preserved: | |
1554 |
|
1554 | |||
1555 | $ hg update -q -C 1 |
|
1555 | $ hg update -q -C 1 | |
1556 | $ hg mv f f.txt |
|
1556 | $ hg mv f f.txt | |
1557 | $ hg ci -qm "f.txt" |
|
1557 | $ hg ci -qm "f.txt" | |
1558 | $ hg update -q -C 2 |
|
1558 | $ hg update -q -C 2 | |
1559 | $ hg merge -y -r tip --tool echo --config merge-tools.echo.args='$base $local $other $output' |
|
1559 | $ hg merge -y -r tip --tool echo --config merge-tools.echo.args='$base $local $other $output' | |
1560 | merging f and f.txt to f.txt |
|
1560 | merging f and f.txt to f.txt | |
1561 | */f~base.?????? $TESTTMP/f.txt.orig */f~other.??????.txt $TESTTMP/f.txt (glob) |
|
1561 | */f~base.?????? $TESTTMP/f.txt.orig */f~other.??????.txt $TESTTMP/f.txt (glob) | |
1562 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
1562 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
1563 | (branch merge, don't forget to commit) |
|
1563 | (branch merge, don't forget to commit) | |
1564 |
|
1564 | |||
1565 | Check that debugpicktool examines which merge tool is chosen for |
|
1565 | Check that debugpicktool examines which merge tool is chosen for | |
1566 | specified file as expected |
|
1566 | specified file as expected | |
1567 |
|
1567 | |||
1568 | $ beforemerge |
|
1568 | $ beforemerge | |
1569 | [merge-tools] |
|
1569 | [merge-tools] | |
1570 | false.whatever= |
|
1570 | false.whatever= | |
1571 | true.priority=1 |
|
1571 | true.priority=1 | |
1572 | true.executable=cat |
|
1572 | true.executable=cat | |
1573 | # hg update -C 1 |
|
1573 | # hg update -C 1 | |
1574 |
|
1574 | |||
1575 | (default behavior: checking files in the working parent context) |
|
1575 | (default behavior: checking files in the working parent context) | |
1576 |
|
1576 | |||
1577 | $ hg manifest |
|
1577 | $ hg manifest | |
1578 | f |
|
1578 | f | |
1579 | $ hg debugpickmergetool |
|
1579 | $ hg debugpickmergetool | |
1580 | f = true |
|
1580 | f = true | |
1581 |
|
1581 | |||
1582 | (-X/-I and file patterns limmit examination targets) |
|
1582 | (-X/-I and file patterns limmit examination targets) | |
1583 |
|
1583 | |||
1584 | $ hg debugpickmergetool -X f |
|
1584 | $ hg debugpickmergetool -X f | |
1585 | $ hg debugpickmergetool unknown |
|
1585 | $ hg debugpickmergetool unknown | |
1586 | unknown: no such file in rev ef83787e2614 |
|
1586 | unknown: no such file in rev ef83787e2614 | |
1587 |
|
1587 | |||
1588 | (--changedelete emulates merging change and delete) |
|
1588 | (--changedelete emulates merging change and delete) | |
1589 |
|
1589 | |||
1590 | $ hg debugpickmergetool --changedelete |
|
1590 | $ hg debugpickmergetool --changedelete | |
1591 | f = :prompt |
|
1591 | f = :prompt | |
1592 |
|
1592 | |||
1593 | (-r REV causes checking files in specified revision) |
|
1593 | (-r REV causes checking files in specified revision) | |
1594 |
|
1594 | |||
1595 | $ hg manifest -r tip |
|
1595 | $ hg manifest -r tip | |
1596 | f.txt |
|
1596 | f.txt | |
1597 | $ hg debugpickmergetool -r tip |
|
1597 | $ hg debugpickmergetool -r tip | |
1598 | f.txt = true |
|
1598 | f.txt = true | |
1599 |
|
1599 | |||
1600 | #if symlink |
|
1600 | #if symlink | |
1601 |
|
1601 | |||
1602 | (symlink causes chosing :prompt) |
|
1602 | (symlink causes chosing :prompt) | |
1603 |
|
1603 | |||
1604 | $ hg debugpickmergetool -r 6d00b3726f6e |
|
1604 | $ hg debugpickmergetool -r 6d00b3726f6e | |
1605 | f = :prompt |
|
1605 | f = :prompt | |
1606 |
|
1606 | |||
1607 | #endif |
|
1607 | #endif | |
1608 |
|
1608 | |||
1609 | (--verbose shows some configurations) |
|
1609 | (--verbose shows some configurations) | |
1610 |
|
1610 | |||
1611 | $ hg debugpickmergetool --tool foobar -v |
|
1611 | $ hg debugpickmergetool --tool foobar -v | |
1612 | with --tool 'foobar' |
|
1612 | with --tool 'foobar' | |
1613 | f = foobar |
|
1613 | f = foobar | |
1614 |
|
1614 | |||
1615 | $ HGMERGE=false hg debugpickmergetool -v |
|
1615 | $ HGMERGE=false hg debugpickmergetool -v | |
1616 | with HGMERGE='false' |
|
1616 | with HGMERGE='false' | |
1617 | f = false |
|
1617 | f = false | |
1618 |
|
1618 | |||
1619 | $ hg debugpickmergetool --config ui.merge=false -v |
|
1619 | $ hg debugpickmergetool --config ui.merge=false -v | |
1620 | with ui.merge='false' |
|
1620 | with ui.merge='false' | |
1621 | f = false |
|
1621 | f = false | |
1622 |
|
1622 | |||
1623 | (--debug shows errors detected intermediately) |
|
1623 | (--debug shows errors detected intermediately) | |
1624 |
|
1624 | |||
1625 | $ hg debugpickmergetool --config merge-patterns.f=true --config merge-tools.true.executable=nonexistentmergetool --debug f |
|
1625 | $ hg debugpickmergetool --config merge-patterns.f=true --config merge-tools.true.executable=nonexistentmergetool --debug f | |
1626 | couldn't find merge tool true (for pattern f) |
|
1626 | couldn't find merge tool true (for pattern f) | |
1627 | couldn't find merge tool true |
|
1627 | couldn't find merge tool true | |
1628 | f = false |
|
1628 | f = false |
General Comments 0
You need to be logged in to leave comments.
Login now