##// END OF EJS Templates
tests: clean-up of largefiles tests in test-issue3084.t...
Mads Kiilerich -
r23417:442bb301 stable
parent child Browse files
Show More
@@ -1,381 +1,401
1
1
2 $ echo "[extensions]" >> $HGRCPATH
2 $ echo "[extensions]" >> $HGRCPATH
3 $ echo "largefiles =" >> $HGRCPATH
3 $ echo "largefiles =" >> $HGRCPATH
4
4
5 Create the repository outside $HOME since largefiles write to
5 Create the repository outside $HOME since largefiles write to
6 $HOME/.cache/largefiles.
6 $HOME/.cache/largefiles.
7
7
8 $ hg init test
8 $ hg init test
9 $ cd test
9 $ cd test
10 $ echo "root" > root
10 $ echo "root" > root
11 $ hg add root
11 $ hg add root
12 $ hg commit -m "Root commit"
12 $ hg commit -m "Root commit" --config extensions.largefiles=!
13
14 Ensure that .hg/largefiles isn't created before largefiles are added
15 #if unix-permissions
16 $ chmod 555 .hg
17 #endif
18 $ hg status
19 #if unix-permissions
20 $ chmod 755 .hg
21 #endif
22
23 $ test -f .hg/largefiles
24 [1]
13
25
14 $ echo "large" > foo
26 $ echo "large" > foo
15 $ hg add --large foo
27 $ hg add --large foo
16 $ hg commit -m "Add foo as a largefile"
28 $ hg commit -m "Add foo as a largefile"
17
29
18 $ hg update -r 0
30 $ hg update -r 0
19 getting changed largefiles
31 getting changed largefiles
20 0 largefiles updated, 1 removed
32 0 largefiles updated, 1 removed
21 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
33 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
22
34
23 $ echo "normal" > foo
35 $ echo "normal" > foo
24 $ hg add foo
36 $ hg add foo
25 $ hg commit -m "Add foo as normal file"
37 $ hg commit -m "Add foo as normal file"
26 created new head
38 created new head
27
39
28 Normal file in the working copy, keeping the normal version:
40 Normal file in the working copy, keeping the normal version:
29
41
30 $ echo "n" | hg merge --config ui.interactive=Yes
42 $ echo "n" | hg merge --config ui.interactive=Yes
31 remote turned local normal file foo into a largefile
43 remote turned local normal file foo into a largefile
32 use (l)argefile or keep (n)ormal file? n
44 use (l)argefile or keep (n)ormal file? n
33 getting changed largefiles
45 getting changed largefiles
34 0 largefiles updated, 0 removed
46 0 largefiles updated, 0 removed
35 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
47 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
36 (branch merge, don't forget to commit)
48 (branch merge, don't forget to commit)
37
49
38 $ hg status
50 $ hg status
39 $ cat foo
51 $ cat foo
40 normal
52 normal
41
53
42 Normal file in the working copy, keeping the largefile version:
54 Normal file in the working copy, keeping the largefile version:
43
55
44 $ hg update -q -C
56 $ hg update -q -C
45 $ echo "l" | hg merge --config ui.interactive=Yes
57 $ echo "l" | hg merge --config ui.interactive=Yes
46 remote turned local normal file foo into a largefile
58 remote turned local normal file foo into a largefile
47 use (l)argefile or keep (n)ormal file? l
59 use (l)argefile or keep (n)ormal file? l
48 getting changed largefiles
60 getting changed largefiles
49 1 largefiles updated, 0 removed
61 1 largefiles updated, 0 removed
50 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
62 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
51 (branch merge, don't forget to commit)
63 (branch merge, don't forget to commit)
52
64
53 $ hg status
65 $ hg status
54 M foo
66 M foo
55
67
56 $ hg diff --nodates
68 $ hg diff --nodates
57 diff -r fa129ab6b5a7 .hglf/foo
69 diff -r fa129ab6b5a7 .hglf/foo
58 --- /dev/null
70 --- /dev/null
59 +++ b/.hglf/foo
71 +++ b/.hglf/foo
60 @@ -0,0 +1,1 @@
72 @@ -0,0 +1,1 @@
61 +7f7097b041ccf68cc5561e9600da4655d21c6d18
73 +7f7097b041ccf68cc5561e9600da4655d21c6d18
62 diff -r fa129ab6b5a7 foo
74 diff -r fa129ab6b5a7 foo
63 --- a/foo
75 --- a/foo
64 +++ /dev/null
76 +++ /dev/null
65 @@ -1,1 +0,0 @@
77 @@ -1,1 +0,0 @@
66 -normal
78 -normal
67
79
68 $ cat foo
80 $ cat foo
69 large
81 large
70
82
71 Largefile in the working copy, keeping the normal version:
83 Largefile in the working copy, keeping the normal version:
72
84
73 $ hg update -q -C -r 1
85 $ hg update -q -C -r 1
74 $ echo "n" | hg merge --config ui.interactive=Yes
86 $ echo "n" | hg merge --config ui.interactive=Yes
75 remote turned local largefile foo into a normal file
87 remote turned local largefile foo into a normal file
76 keep (l)argefile or use (n)ormal file? n
88 keep (l)argefile or use (n)ormal file? n
77 getting changed largefiles
89 getting changed largefiles
78 0 largefiles updated, 0 removed
90 0 largefiles updated, 0 removed
79 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
91 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
80 (branch merge, don't forget to commit)
92 (branch merge, don't forget to commit)
81
93
82 $ hg status
94 $ hg status
83 M foo
95 M foo
84
96
85 $ hg diff --nodates
97 $ hg diff --nodates
86 diff -r ff521236428a .hglf/foo
98 diff -r ff521236428a .hglf/foo
87 --- a/.hglf/foo
99 --- a/.hglf/foo
88 +++ /dev/null
100 +++ /dev/null
89 @@ -1,1 +0,0 @@
101 @@ -1,1 +0,0 @@
90 -7f7097b041ccf68cc5561e9600da4655d21c6d18
102 -7f7097b041ccf68cc5561e9600da4655d21c6d18
91 diff -r ff521236428a foo
103 diff -r ff521236428a foo
92 --- /dev/null
104 --- /dev/null
93 +++ b/foo
105 +++ b/foo
94 @@ -0,0 +1,1 @@
106 @@ -0,0 +1,1 @@
95 +normal
107 +normal
96
108
97 $ cat foo
109 $ cat foo
98 normal
110 normal
99
111
100 Largefile in the working copy, keeping the largefile version:
112 Largefile in the working copy, keeping the largefile version:
101
113
102 $ hg update -q -C -r 1
114 $ hg update -q -C -r 1
103 $ echo "l" | hg merge --config ui.interactive=Yes
115 $ echo "l" | hg merge --config ui.interactive=Yes
104 remote turned local largefile foo into a normal file
116 remote turned local largefile foo into a normal file
105 keep (l)argefile or use (n)ormal file? l
117 keep (l)argefile or use (n)ormal file? l
106 getting changed largefiles
118 getting changed largefiles
107 1 largefiles updated, 0 removed
119 1 largefiles updated, 0 removed
108 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
120 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
109 (branch merge, don't forget to commit)
121 (branch merge, don't forget to commit)
110
122
111 $ hg status
123 $ hg status
112
124
113 $ cat foo
125 $ cat foo
114 large
126 large
115
127
116 Whatever ... commit something so we can invoke merge when updating
128 Whatever ... commit something so we can invoke merge when updating
117
129
118 $ hg commit -m '3: Merge'
130 $ hg commit -m '3: Merge'
119
131
120 Updating from largefile to normal - no reason to prompt
132 Updating from largefile to normal - no reason to prompt
121
133
122 $ hg up -r 2
134 $ hg up -r 2
123 getting changed largefiles
135 getting changed largefiles
124 0 largefiles updated, 0 removed
136 0 largefiles updated, 0 removed
125 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
137 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
126 $ cat foo
138 $ cat foo
127 normal
139 normal
128
140
129 (the update above used to leave the working dir in a very weird state - clean it
141 (the update above used to leave the working dir in a very weird state - clean it
130 $ hg up -qr null
142 $ hg up -qr null
131 $ hg up -qr 2
143 $ hg up -qr 2
132 )
144 )
133
145
134 Updating from normal to largefile - no reason to prompt
146 Updating from normal to largefile - no reason to prompt
135
147
136 $ hg up -r 3
148 $ hg up -r 3
137 getting changed largefiles
149 getting changed largefiles
138 1 largefiles updated, 0 removed
150 1 largefiles updated, 0 removed
139 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
151 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
140 $ cat foo
152 $ cat foo
141 large
153 large
142
154
143 $ cd ..
155 $ cd ..
144
156
145
157
146 Systematic testing of merges involving largefiles:
158 Systematic testing of merges involving largefiles:
147
159
148 Ancestor: normal Parent: normal= Parent: large result: large
160 Ancestor: normal Parent: normal-id Parent: large result: large
149 Ancestor: normal Parent: normal2 Parent: large result: ?
161 Ancestor: normal Parent: normal2 Parent: large result: ?
150 Ancestor: large Parent: large= Parent: normal result: normal
162 Ancestor: large Parent: large-id Parent: normal result: normal
151 Ancestor: large Parent: large2 Parent: normal result: ?
163 Ancestor: large Parent: large2 Parent: normal result: ?
152
164
153 All cases should try merging both ways.
165 All cases should try merging both ways.
154 "=" means same file content.
155
166
156 Prepare test repo:
167 Prepare test repo:
157
168
158 $ hg init merges
169 $ hg init merges
159 $ cd merges
170 $ cd merges
160 $ touch f1
161 $ hg ci -Aqm "0-root" --config extensions.largefiles=!
162
171
163 Ensure that .hg/largefiles isn't created before largefiles are added
172 prepare cases with "normal" ancestor:
164 #if unix-permissions
165 $ chmod 555 .hg
166 #endif
167 $ hg status
168 #if unix-permissions
169 $ chmod 755 .hg
170 #endif
171
173
172 $ test -f .hg/largefiles
174 $ hg up -qr null
173 [1]
174
175 ancestor is "normal":
176 $ echo normal > f
175 $ echo normal > f
177 $ hg ci -Aqm "1-normal-ancestor"
176 $ hg ci -Aqm "normal-ancestor"
177 $ hg tag -l "normal-ancestor"
178 $ touch f2
178 $ touch f2
179 $ hg ci -Aqm "2-normal-unchanged"
179 $ hg ci -Aqm "normal-id"
180 $ hg tag -l "normal="
180 $ hg tag -l "normal-id"
181 $ echo normal2 > f
181 $ echo normal2 > f
182 $ hg ci -m "3-normal2"
182 $ hg ci -m "normal2"
183 $ hg tag -l "normal2"
183 $ hg tag -l "normal2"
184 $ hg up -qr 1
184 $ hg up -qr "normal-ancestor"
185 $ hg rm f
185 $ hg rm f
186 $ echo large > f
186 $ echo large > f
187 $ hg add --large f
187 $ hg add --large f
188 $ hg ci -qm "4-normal-to-large"
188 $ hg ci -qm "large"
189 $ hg tag -l "large"
189 $ hg tag -l "large"
190
190
191 $ hg up -qr null
191 prepare cases with "large" ancestor:
192
192
193 ancestor is "large":
193 $ hg up -qr null
194 $ echo large > f
194 $ echo large > f
195 $ hg add --large f
195 $ hg add --large f
196 $ hg ci -qm "5-large-ancestor"
196 $ hg ci -qm "large-ancestor"
197 $ hg tag -l "large-ancestor"
197 $ touch f2
198 $ touch f2
198 $ hg ci -Aqm "6-large-unchanged"
199 $ hg ci -Aqm "large-id"
199 $ hg tag -l "large="
200 $ hg tag -l "large-id"
200 $ echo large2 > f
201 $ echo large2 > f
201 $ hg ci -m "7-large2"
202 $ hg ci -m "large2"
202 $ hg tag -l "large2"
203 $ hg tag -l "large2"
203 $ hg up -qr 5
204 $ hg up -qr "large-ancestor"
204 $ hg rm f
205 $ hg rm f
205 $ echo normal > f
206 $ echo normal > f
206 $ hg ci -qAm "8-large-to-normal"
207 $ hg ci -qAm "normal"
207 $ hg tag -l "normal"
208 $ hg tag -l "normal"
208
209
209 Ancestor: normal Parent: normal= Parent: large result: large
210 $ hg log -GT '{tags}'
211 @ normal tip
212 |
213 | o large2
214 | |
215 | o large-id
216 |/
217 o large-ancestor
218
219 o large
220 |
221 | o normal2
222 | |
223 | o normal-id
224 |/
225 o normal-ancestor
226
210
227
211 $ hg up -Cqr normal=
228
229 Ancestor: normal Parent: normal-id Parent: large result: large
230
231 $ hg up -Cqr normal-id
212 $ hg merge -r large
232 $ hg merge -r large
213 getting changed largefiles
233 getting changed largefiles
214 1 largefiles updated, 0 removed
234 1 largefiles updated, 0 removed
215 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
235 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
216 (branch merge, don't forget to commit)
236 (branch merge, don't forget to commit)
217 $ cat f
237 $ cat f
218 large
238 large
219
239
220 swap
240 swap
221
241
222 $ hg up -Cqr large
242 $ hg up -Cqr large
223 $ hg merge -r normal=
243 $ hg merge -r normal-id
224 getting changed largefiles
244 getting changed largefiles
225 0 largefiles updated, 0 removed
245 0 largefiles updated, 0 removed
226 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
246 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
227 (branch merge, don't forget to commit)
247 (branch merge, don't forget to commit)
228 $ cat f
248 $ cat f
229 large
249 large
230
250
231 Ancestor: normal Parent: normal2 Parent: large result: ?
251 Ancestor: normal Parent: normal2 Parent: large result: ?
232 (annoying extra prompt ... but it do not do any serious harm)
252 (annoying extra prompt ... but it do not do any serious harm)
233
253
234 $ hg up -Cqr normal2
254 $ hg up -Cqr normal2
235 $ hg merge -r large
255 $ hg merge -r large
236 local changed f which remote deleted
256 local changed f which remote deleted
237 use (c)hanged version or (d)elete? c
257 use (c)hanged version or (d)elete? c
238 remote turned local normal file f into a largefile
258 remote turned local normal file f into a largefile
239 use (l)argefile or keep (n)ormal file? l
259 use (l)argefile or keep (n)ormal file? l
240 getting changed largefiles
260 getting changed largefiles
241 1 largefiles updated, 0 removed
261 1 largefiles updated, 0 removed
242 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
262 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
243 (branch merge, don't forget to commit)
263 (branch merge, don't forget to commit)
244 $ cat f
264 $ cat f
245 large
265 large
246
266
247 $ hg up -Cqr normal2
267 $ hg up -Cqr normal2
248 $ ( echo c; echo n ) | hg merge -r large --config ui.interactive=Yes
268 $ ( echo c; echo n ) | hg merge -r large --config ui.interactive=Yes
249 local changed f which remote deleted
269 local changed f which remote deleted
250 use (c)hanged version or (d)elete? c
270 use (c)hanged version or (d)elete? c
251 remote turned local normal file f into a largefile
271 remote turned local normal file f into a largefile
252 use (l)argefile or keep (n)ormal file? n
272 use (l)argefile or keep (n)ormal file? n
253 getting changed largefiles
273 getting changed largefiles
254 0 largefiles updated, 0 removed
274 0 largefiles updated, 0 removed
255 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
275 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
256 (branch merge, don't forget to commit)
276 (branch merge, don't forget to commit)
257 $ cat f
277 $ cat f
258 normal2
278 normal2
259
279
260 $ hg up -Cqr normal2
280 $ hg up -Cqr normal2
261 $ echo d | hg merge -r large --config ui.interactive=Yes
281 $ echo d | hg merge -r large --config ui.interactive=Yes
262 local changed f which remote deleted
282 local changed f which remote deleted
263 use (c)hanged version or (d)elete? d
283 use (c)hanged version or (d)elete? d
264 getting changed largefiles
284 getting changed largefiles
265 1 largefiles updated, 0 removed
285 1 largefiles updated, 0 removed
266 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
286 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
267 (branch merge, don't forget to commit)
287 (branch merge, don't forget to commit)
268 $ cat f
288 $ cat f
269 large
289 large
270
290
271 swap
291 swap
272
292
273 $ hg up -Cqr large
293 $ hg up -Cqr large
274 $ hg merge -r normal2
294 $ hg merge -r normal2
275 remote changed f which local deleted
295 remote changed f which local deleted
276 use (c)hanged version or leave (d)eleted? c
296 use (c)hanged version or leave (d)eleted? c
277 remote turned local largefile f into a normal file
297 remote turned local largefile f into a normal file
278 keep (l)argefile or use (n)ormal file? l
298 keep (l)argefile or use (n)ormal file? l
279 getting changed largefiles
299 getting changed largefiles
280 1 largefiles updated, 0 removed
300 1 largefiles updated, 0 removed
281 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
301 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
282 (branch merge, don't forget to commit)
302 (branch merge, don't forget to commit)
283 $ cat f
303 $ cat f
284 large
304 large
285
305
286 $ hg up -Cqr large
306 $ hg up -Cqr large
287 $ ( echo c; echo n ) | hg merge -r normal2 --config ui.interactive=Yes
307 $ ( echo c; echo n ) | hg merge -r normal2 --config ui.interactive=Yes
288 remote changed f which local deleted
308 remote changed f which local deleted
289 use (c)hanged version or leave (d)eleted? c
309 use (c)hanged version or leave (d)eleted? c
290 remote turned local largefile f into a normal file
310 remote turned local largefile f into a normal file
291 keep (l)argefile or use (n)ormal file? n
311 keep (l)argefile or use (n)ormal file? n
292 getting changed largefiles
312 getting changed largefiles
293 0 largefiles updated, 0 removed
313 0 largefiles updated, 0 removed
294 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
314 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
295 (branch merge, don't forget to commit)
315 (branch merge, don't forget to commit)
296 $ cat f
316 $ cat f
297 normal2
317 normal2
298
318
299 $ hg up -Cqr large
319 $ hg up -Cqr large
300 $ echo d | hg merge -r normal2 --config ui.interactive=Yes
320 $ echo d | hg merge -r normal2 --config ui.interactive=Yes
301 remote changed f which local deleted
321 remote changed f which local deleted
302 use (c)hanged version or leave (d)eleted? d
322 use (c)hanged version or leave (d)eleted? d
303 getting changed largefiles
323 getting changed largefiles
304 0 largefiles updated, 0 removed
324 0 largefiles updated, 0 removed
305 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
325 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
306 (branch merge, don't forget to commit)
326 (branch merge, don't forget to commit)
307 $ cat f
327 $ cat f
308 large
328 large
309
329
310 Ancestor: large Parent: large= Parent: normal result: normal
330 Ancestor: large Parent: large-id Parent: normal result: normal
311
331
312 $ hg up -Cqr large=
332 $ hg up -Cqr large-id
313 $ hg merge -r normal
333 $ hg merge -r normal
314 getting changed largefiles
334 getting changed largefiles
315 0 largefiles updated, 0 removed
335 0 largefiles updated, 0 removed
316 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
336 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
317 (branch merge, don't forget to commit)
337 (branch merge, don't forget to commit)
318 $ cat f
338 $ cat f
319 normal
339 normal
320
340
321 swap
341 swap
322
342
323 $ hg up -Cqr normal
343 $ hg up -Cqr normal
324 $ hg merge -r large=
344 $ hg merge -r large-id
325 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
345 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
326 (branch merge, don't forget to commit)
346 (branch merge, don't forget to commit)
327 $ cat f
347 $ cat f
328 normal
348 normal
329
349
330 Ancestor: large Parent: large2 Parent: normal result: ?
350 Ancestor: large Parent: large2 Parent: normal result: ?
331 (annoying extra prompt ... but it do not do any serious harm)
351 (annoying extra prompt ... but it do not do any serious harm)
332
352
333 $ hg up -Cqr large2
353 $ hg up -Cqr large2
334 $ hg merge -r normal
354 $ hg merge -r normal
335 local changed .hglf/f which remote deleted
355 local changed .hglf/f which remote deleted
336 use (c)hanged version or (d)elete? c
356 use (c)hanged version or (d)elete? c
337 remote turned local largefile f into a normal file
357 remote turned local largefile f into a normal file
338 keep (l)argefile or use (n)ormal file? l
358 keep (l)argefile or use (n)ormal file? l
339 getting changed largefiles
359 getting changed largefiles
340 1 largefiles updated, 0 removed
360 1 largefiles updated, 0 removed
341 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
361 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
342 (branch merge, don't forget to commit)
362 (branch merge, don't forget to commit)
343 $ cat f
363 $ cat f
344 large2
364 large2
345
365
346 $ hg up -Cqr large2
366 $ hg up -Cqr large2
347 $ echo d | hg merge -r normal --config ui.interactive=Yes
367 $ echo d | hg merge -r normal --config ui.interactive=Yes
348 local changed .hglf/f which remote deleted
368 local changed .hglf/f which remote deleted
349 use (c)hanged version or (d)elete? d
369 use (c)hanged version or (d)elete? d
350 getting changed largefiles
370 getting changed largefiles
351 0 largefiles updated, 0 removed
371 0 largefiles updated, 0 removed
352 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
372 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
353 (branch merge, don't forget to commit)
373 (branch merge, don't forget to commit)
354 $ cat f
374 $ cat f
355 normal
375 normal
356
376
357 swap
377 swap
358
378
359 $ hg up -Cqr normal
379 $ hg up -Cqr normal
360 $ hg merge -r large2
380 $ hg merge -r large2
361 remote changed .hglf/f which local deleted
381 remote changed .hglf/f which local deleted
362 use (c)hanged version or leave (d)eleted? c
382 use (c)hanged version or leave (d)eleted? c
363 remote turned local normal file f into a largefile
383 remote turned local normal file f into a largefile
364 use (l)argefile or keep (n)ormal file? l
384 use (l)argefile or keep (n)ormal file? l
365 getting changed largefiles
385 getting changed largefiles
366 1 largefiles updated, 0 removed
386 1 largefiles updated, 0 removed
367 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
387 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
368 (branch merge, don't forget to commit)
388 (branch merge, don't forget to commit)
369 $ cat f
389 $ cat f
370 large2
390 large2
371
391
372 $ hg up -Cqr normal
392 $ hg up -Cqr normal
373 $ echo d | hg merge -r large2 --config ui.interactive=Yes
393 $ echo d | hg merge -r large2 --config ui.interactive=Yes
374 remote changed .hglf/f which local deleted
394 remote changed .hglf/f which local deleted
375 use (c)hanged version or leave (d)eleted? d
395 use (c)hanged version or leave (d)eleted? d
376 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
396 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
377 (branch merge, don't forget to commit)
397 (branch merge, don't forget to commit)
378 $ cat f
398 $ cat f
379 normal
399 normal
380
400
381 $ cd ..
401 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now