Show More
@@ -368,7 +368,7 b' def overridemanifestmerge(origfn, repo, ' | |||
|
368 | 368 | if overwrite: |
|
369 | 369 | processed.append(action) |
|
370 | 370 | continue |
|
371 | f, m, args = action | |
|
371 | f, m, args, msg = action | |
|
372 | 372 | |
|
373 | 373 | choices = (_('&Largefile'), _('&Normal file')) |
|
374 | 374 | if m == "g" and lfutil.splitstandin(f) in p1 and f in p2: |
@@ -379,10 +379,10 b' def overridemanifestmerge(origfn, repo, ' | |||
|
379 | 379 | msg = _('%s has been turned into a largefile\n' |
|
380 | 380 | 'use (l)argefile or keep as (n)ormal file?') % lfile |
|
381 | 381 | if repo.ui.promptchoice(msg, choices, 0) == 0: |
|
382 | processed.append((lfile, "r", None)) | |
|
383 | processed.append((standin, "g", (p2.flags(standin),))) | |
|
382 | processed.append((lfile, "r", None, msg)) | |
|
383 | processed.append((standin, "g", (p2.flags(standin),), msg)) | |
|
384 | 384 | else: |
|
385 | processed.append((standin, "r", None)) | |
|
385 | processed.append((standin, "r", None, msg)) | |
|
386 | 386 | elif m == "g" and lfutil.standin(f) in p1 and f in p2: |
|
387 | 387 | # Case 2: largefile in the working copy, normal file in |
|
388 | 388 | # the second parent |
@@ -391,10 +391,10 b' def overridemanifestmerge(origfn, repo, ' | |||
|
391 | 391 | msg = _('%s has been turned into a normal file\n' |
|
392 | 392 | 'keep as (l)argefile or use (n)ormal file?') % lfile |
|
393 | 393 | if repo.ui.promptchoice(msg, choices, 0) == 0: |
|
394 | processed.append((lfile, "r", None)) | |
|
394 | processed.append((lfile, "r", None, msg)) | |
|
395 | 395 | else: |
|
396 | processed.append((standin, "r", None)) | |
|
397 | processed.append((lfile, "g", (p2.flags(lfile),))) | |
|
396 | processed.append((standin, "r", None, msg)) | |
|
397 | processed.append((lfile, "g", (p2.flags(lfile),), msg)) | |
|
398 | 398 | else: |
|
399 | 399 | processed.append(action) |
|
400 | 400 |
@@ -176,12 +176,12 b' def _forgetremoved(wctx, mctx, branchmer' | |||
|
176 | 176 | state = branchmerge and 'r' or 'f' |
|
177 | 177 | for f in wctx.deleted(): |
|
178 | 178 | if f not in mctx: |
|
179 | actions.append((f, state, None)) | |
|
179 | actions.append((f, state, None, "forget deleted")) | |
|
180 | 180 | |
|
181 | 181 | if not branchmerge: |
|
182 | 182 | for f in wctx.removed(): |
|
183 | 183 | if f not in mctx: |
|
184 | actions.append((f, "f", None)) | |
|
184 | actions.append((f, "f", None, "forget removed")) | |
|
185 | 185 | |
|
186 | 186 | return actions |
|
187 | 187 | |
@@ -194,8 +194,7 b' def manifestmerge(repo, p1, p2, pa, over' | |||
|
194 | 194 | """ |
|
195 | 195 | |
|
196 | 196 | def act(msg, m, f, *args): |
|
197 | repo.ui.debug(" %s: %s -> %s\n" % (f, msg, m)) | |
|
198 | actions.append((f, m, args)) | |
|
197 | actions.append((f, m, args, msg)) | |
|
199 | 198 | |
|
200 | 199 | actions, copy, movewithdir = [], {}, {} |
|
201 | 200 | |
@@ -342,7 +341,8 b' def applyupdates(repo, actions, wctx, mc' | |||
|
342 | 341 | |
|
343 | 342 | # prescan for merges |
|
344 | 343 | for a in actions: |
|
345 | f, m, args = a | |
|
344 | f, m, args, msg = a | |
|
345 | repo.ui.debug(" %s: %s -> %s\n" % (f, msg, m)) | |
|
346 | 346 | if m == "m": # merge |
|
347 | 347 | f2, fd, move = args |
|
348 | 348 | if fd == '.hgsubstate': # merged internally |
@@ -374,7 +374,7 b' def applyupdates(repo, actions, wctx, mc' | |||
|
374 | 374 | |
|
375 | 375 | numupdates = len(actions) |
|
376 | 376 | for i, a in enumerate(actions): |
|
377 | f, m, args = a | |
|
377 | f, m, args, msg = a | |
|
378 | 378 | repo.ui.progress(_('updating'), i + 1, item=f, total=numupdates, |
|
379 | 379 | unit=_('files')) |
|
380 | 380 | if m == "r": # remove |
@@ -468,7 +468,7 b' def recordupdates(repo, actions, branchm' | |||
|
468 | 468 | "record merge actions to the dirstate" |
|
469 | 469 | |
|
470 | 470 | for a in actions: |
|
471 | f, m, args = a | |
|
471 | f, m, args, msg = a | |
|
472 | 472 | if m == "r": # remove |
|
473 | 473 | if branchmerge: |
|
474 | 474 | repo.dirstate.remove(f) |
@@ -32,8 +32,8 b'' | |||
|
32 | 32 | overwrite: False, partial: False |
|
33 | 33 | ancestor: b8bf91eeebbc, local: add3f11052fa+, remote: 17c05bb7fcb6 |
|
34 | 34 | a: remote moved to b -> m |
|
35 | preserving a for resolve of b | |
|
35 | 36 | a: remote moved to c -> m |
|
36 | preserving a for resolve of b | |
|
37 | 37 | preserving a for resolve of c |
|
38 | 38 | removing a |
|
39 | 39 | updating: a 1/2 files (50.00%) |
@@ -35,9 +35,9 b" we get conflicts that shouldn't be there" | |||
|
35 | 35 | resolving manifests |
|
36 | 36 | overwrite: False, partial: False |
|
37 | 37 | ancestor: e6dc8efe11cc, local: 6a0df1dad128+, remote: 484bf6903104 |
|
38 | foo: versions differ -> m | |
|
39 | 38 | foo: remote copied to bar -> m |
|
40 | 39 | preserving foo for resolve of bar |
|
40 | foo: versions differ -> m | |
|
41 | 41 | preserving foo for resolve of foo |
|
42 | 42 | updating: foo 1/2 files (50.00%) |
|
43 | 43 | picked tool 'internal:merge' for bar (binary False symlink False) |
@@ -33,13 +33,13 b'' | |||
|
33 | 33 | src: 'a2' -> dst: 'b2' ! |
|
34 | 34 | src: 'a2' -> dst: 'c2' ! |
|
35 | 35 | checking for directory renames |
|
36 | a2: divergent renames -> dr | |
|
37 | 36 | resolving manifests |
|
38 | 37 | overwrite: False, partial: False |
|
39 | 38 | ancestor: af1939970a1c, local: 044f8520aeeb+, remote: 85c198ef2f6c |
|
40 | 39 | a: remote moved to b -> m |
|
40 | preserving a for resolve of b | |
|
41 | a2: divergent renames -> dr | |
|
41 | 42 | b2: remote created -> g |
|
42 | preserving a for resolve of b | |
|
43 | 43 | removing a |
|
44 | 44 | updating: a 1/3 files (33.33%) |
|
45 | 45 | picked tool 'internal:merge' for b (binary False symlink False) |
@@ -178,10 +178,10 b' Check for issue3074' | |||
|
178 | 178 | all copies found (* = to merge, ! = divergent, % = renamed and deleted): |
|
179 | 179 | src: 'file' -> dst: 'newfile' % |
|
180 | 180 | checking for directory renames |
|
181 | file: rename and delete -> rd | |
|
182 | 181 | resolving manifests |
|
183 | 182 | overwrite: False, partial: False |
|
184 | 183 | ancestor: 19d7f95df299, local: 0084274f6b67+, remote: 5d32493049f0 |
|
184 | file: rename and delete -> rd | |
|
185 | 185 | newfile: remote created -> g |
|
186 | 186 | updating: file 1/2 files (50.00%) |
|
187 | 187 | note: possible conflict - file was deleted and renamed to: |
@@ -86,9 +86,9 b' args:' | |||
|
86 | 86 | resolving manifests |
|
87 | 87 | overwrite: False, partial: False |
|
88 | 88 | ancestor: 924404dff337, local: e300d1c794ec+, remote: 4ce40f5aca24 |
|
89 | rev: versions differ -> m | |
|
90 | 89 | a: remote copied to b -> m |
|
91 | 90 | preserving a for resolve of b |
|
91 | rev: versions differ -> m | |
|
92 | 92 | preserving rev for resolve of rev |
|
93 | 93 | updating: a 1/2 files (50.00%) |
|
94 | 94 | picked tool 'python ../merge' for b (binary False symlink False) |
@@ -123,8 +123,8 b' args:' | |||
|
123 | 123 | ancestor: 924404dff337, local: 86a2aa42fc76+, remote: f4db7e329e71 |
|
124 | 124 | a: remote is newer -> g |
|
125 | 125 | b: local copied/moved to a -> m |
|
126 | preserving b for resolve of b | |
|
126 | 127 | rev: versions differ -> m |
|
127 | preserving b for resolve of b | |
|
128 | 128 | preserving rev for resolve of rev |
|
129 | 129 | updating: a 1/3 files (33.33%) |
|
130 | 130 | getting a |
@@ -159,9 +159,9 b' args:' | |||
|
159 | 159 | resolving manifests |
|
160 | 160 | overwrite: False, partial: False |
|
161 | 161 | ancestor: 924404dff337, local: e300d1c794ec+, remote: bdb19105162a |
|
162 | rev: versions differ -> m | |
|
163 | 162 | a: remote moved to b -> m |
|
164 | 163 | preserving a for resolve of b |
|
164 | rev: versions differ -> m | |
|
165 | 165 | preserving rev for resolve of rev |
|
166 | 166 | removing a |
|
167 | 167 | updating: a 1/2 files (50.00%) |
@@ -195,8 +195,8 b' args:' | |||
|
195 | 195 | overwrite: False, partial: False |
|
196 | 196 | ancestor: 924404dff337, local: 02963e448370+, remote: f4db7e329e71 |
|
197 | 197 | b: local copied/moved to a -> m |
|
198 | preserving b for resolve of b | |
|
198 | 199 | rev: versions differ -> m |
|
199 | preserving b for resolve of b | |
|
200 | 200 | preserving rev for resolve of rev |
|
201 | 201 | updating: b 1/2 files (50.00%) |
|
202 | 202 | picked tool 'python ../merge' for b (binary False symlink False) |
@@ -228,8 +228,8 b' args:' | |||
|
228 | 228 | resolving manifests |
|
229 | 229 | overwrite: False, partial: False |
|
230 | 230 | ancestor: 924404dff337, local: 94b33a1b7f2d+, remote: 4ce40f5aca24 |
|
231 | b: remote created -> g | |
|
231 | 232 | rev: versions differ -> m |
|
232 | b: remote created -> g | |
|
233 | 233 | preserving rev for resolve of rev |
|
234 | 234 | updating: b 1/2 files (50.00%) |
|
235 | 235 | getting b |
@@ -286,8 +286,8 b' args:' | |||
|
286 | 286 | overwrite: False, partial: False |
|
287 | 287 | ancestor: 924404dff337, local: 94b33a1b7f2d+, remote: bdb19105162a |
|
288 | 288 | a: other deleted -> r |
|
289 | b: remote created -> g | |
|
289 | 290 | rev: versions differ -> m |
|
290 | b: remote created -> g | |
|
291 | 291 | preserving rev for resolve of rev |
|
292 | 292 | updating: a 1/3 files (33.33%) |
|
293 | 293 | removing a |
@@ -339,8 +339,8 b' args:' | |||
|
339 | 339 | overwrite: False, partial: False |
|
340 | 340 | ancestor: 924404dff337, local: 62e7bf090eba+, remote: 49b6d8032493 |
|
341 | 341 | b: versions differ -> m |
|
342 | preserving b for resolve of b | |
|
342 | 343 | rev: versions differ -> m |
|
343 | preserving b for resolve of b | |
|
344 | 344 | preserving rev for resolve of rev |
|
345 | 345 | updating: b 1/2 files (50.00%) |
|
346 | 346 | picked tool 'python ../merge' for b (binary False symlink False) |
@@ -373,12 +373,12 b' m "um a c" "um x c" " " "10 do merg' | |||
|
373 | 373 | src: 'a' -> dst: 'b' ! |
|
374 | 374 | src: 'a' -> dst: 'c' ! |
|
375 | 375 | checking for directory renames |
|
376 | a: divergent renames -> dr | |
|
377 | 376 | resolving manifests |
|
378 | 377 | overwrite: False, partial: False |
|
379 | 378 | ancestor: 924404dff337, local: 02963e448370+, remote: fe905ef2c33e |
|
379 | a: divergent renames -> dr | |
|
380 | c: remote created -> g | |
|
380 | 381 | rev: versions differ -> m |
|
381 | c: remote created -> g | |
|
382 | 382 | preserving rev for resolve of rev |
|
383 | 383 | updating: a 1/3 files (33.33%) |
|
384 | 384 | note: possible conflict - a was renamed multiple times to: |
@@ -407,8 +407,8 b' m "um a c" "um x c" " " "10 do merg' | |||
|
407 | 407 | overwrite: False, partial: False |
|
408 | 408 | ancestor: 924404dff337, local: 86a2aa42fc76+, remote: af30c7647fc7 |
|
409 | 409 | b: versions differ -> m |
|
410 | preserving b for resolve of b | |
|
410 | 411 | rev: versions differ -> m |
|
411 | preserving b for resolve of b | |
|
412 | 412 | preserving rev for resolve of rev |
|
413 | 413 | updating: b 1/2 files (50.00%) |
|
414 | 414 | picked tool 'python ../merge' for b (binary False symlink False) |
@@ -436,8 +436,8 b' m "um a c" "um x c" " " "10 do merg' | |||
|
436 | 436 | ancestor: 924404dff337, local: 59318016310c+, remote: bdb19105162a |
|
437 | 437 | a: other deleted -> r |
|
438 | 438 | b: versions differ -> m |
|
439 | preserving b for resolve of b | |
|
439 | 440 | rev: versions differ -> m |
|
440 | preserving b for resolve of b | |
|
441 | 441 | preserving rev for resolve of rev |
|
442 | 442 | updating: a 1/3 files (33.33%) |
|
443 | 443 | removing a |
@@ -466,8 +466,8 b' m "um a c" "um x c" " " "10 do merg' | |||
|
466 | 466 | ancestor: 924404dff337, local: 86a2aa42fc76+, remote: 8dbce441892a |
|
467 | 467 | a: remote is newer -> g |
|
468 | 468 | b: versions differ -> m |
|
469 | preserving b for resolve of b | |
|
469 | 470 | rev: versions differ -> m |
|
470 | preserving b for resolve of b | |
|
471 | 471 | preserving rev for resolve of rev |
|
472 | 472 | updating: a 1/3 files (33.33%) |
|
473 | 473 | getting a |
@@ -497,8 +497,8 b' m "um a c" "um x c" " " "10 do merg' | |||
|
497 | 497 | ancestor: 924404dff337, local: 59318016310c+, remote: bdb19105162a |
|
498 | 498 | a: other deleted -> r |
|
499 | 499 | b: versions differ -> m |
|
500 | preserving b for resolve of b | |
|
500 | 501 | rev: versions differ -> m |
|
501 | preserving b for resolve of b | |
|
502 | 502 | preserving rev for resolve of rev |
|
503 | 503 | updating: a 1/3 files (33.33%) |
|
504 | 504 | removing a |
@@ -527,8 +527,8 b' m "um a c" "um x c" " " "10 do merg' | |||
|
527 | 527 | ancestor: 924404dff337, local: 86a2aa42fc76+, remote: 8dbce441892a |
|
528 | 528 | a: remote is newer -> g |
|
529 | 529 | b: versions differ -> m |
|
530 | preserving b for resolve of b | |
|
530 | 531 | rev: versions differ -> m |
|
531 | preserving b for resolve of b | |
|
532 | 532 | preserving rev for resolve of rev |
|
533 | 533 | updating: a 1/3 files (33.33%) |
|
534 | 534 | getting a |
@@ -557,8 +557,8 b' m "um a c" "um x c" " " "10 do merg' | |||
|
557 | 557 | overwrite: False, partial: False |
|
558 | 558 | ancestor: 924404dff337, local: 0b76e65c8289+, remote: 4ce40f5aca24 |
|
559 | 559 | b: versions differ -> m |
|
560 | preserving b for resolve of b | |
|
560 | 561 | rev: versions differ -> m |
|
561 | preserving b for resolve of b | |
|
562 | 562 | preserving rev for resolve of rev |
|
563 | 563 | updating: b 1/2 files (50.00%) |
|
564 | 564 | picked tool 'python ../merge' for b (binary False symlink False) |
@@ -584,12 +584,12 b' m "um a c" "um x c" " " "10 do merg' | |||
|
584 | 584 | resolving manifests |
|
585 | 585 | overwrite: False, partial: False |
|
586 | 586 | ancestor: 924404dff337, local: 02963e448370+, remote: 8dbce441892a |
|
587 | b: versions differ -> m | |
|
588 | rev: versions differ -> m | |
|
589 | 587 | remote changed a which local deleted |
|
590 | 588 | use (c)hanged version or leave (d)eleted? c |
|
591 | 589 | a: prompt recreating -> g |
|
590 | b: versions differ -> m | |
|
592 | 591 | preserving b for resolve of b |
|
592 | rev: versions differ -> m | |
|
593 | 593 | preserving rev for resolve of rev |
|
594 | 594 | updating: a 1/3 files (33.33%) |
|
595 | 595 | getting a |
@@ -617,12 +617,12 b' m "um a c" "um x c" " " "10 do merg' | |||
|
617 | 617 | resolving manifests |
|
618 | 618 | overwrite: False, partial: False |
|
619 | 619 | ancestor: 924404dff337, local: 0b76e65c8289+, remote: bdb19105162a |
|
620 | b: versions differ -> m | |
|
621 | rev: versions differ -> m | |
|
622 | 620 | local changed a which remote deleted |
|
623 | 621 | use (c)hanged version or (d)elete? c |
|
624 | 622 | a: prompt keep -> a |
|
623 | b: versions differ -> m | |
|
625 | 624 | preserving b for resolve of b |
|
625 | rev: versions differ -> m | |
|
626 | 626 | preserving rev for resolve of rev |
|
627 | 627 | updating: a 1/3 files (33.33%) |
|
628 | 628 | updating: b 2/3 files (66.67%) |
@@ -654,9 +654,9 b' m "um a c" "um x c" " " "10 do merg' | |||
|
654 | 654 | resolving manifests |
|
655 | 655 | overwrite: False, partial: False |
|
656 | 656 | ancestor: 924404dff337, local: e300d1c794ec+, remote: 49b6d8032493 |
|
657 | rev: versions differ -> m | |
|
658 | 657 | a: remote moved to b -> m |
|
659 | 658 | preserving a for resolve of b |
|
659 | rev: versions differ -> m | |
|
660 | 660 | preserving rev for resolve of rev |
|
661 | 661 | removing a |
|
662 | 662 | updating: a 1/2 files (50.00%) |
@@ -689,8 +689,8 b' m "um a c" "um x c" " " "10 do merg' | |||
|
689 | 689 | overwrite: False, partial: False |
|
690 | 690 | ancestor: 924404dff337, local: 62e7bf090eba+, remote: f4db7e329e71 |
|
691 | 691 | b: local copied/moved to a -> m |
|
692 | preserving b for resolve of b | |
|
692 | 693 | rev: versions differ -> m |
|
693 | preserving b for resolve of b | |
|
694 | 694 | preserving rev for resolve of rev |
|
695 | 695 | updating: b 1/2 files (50.00%) |
|
696 | 696 | picked tool 'python ../merge' for b (binary False symlink False) |
@@ -727,9 +727,9 b' m "nm a b" "um x a" " " "22 get a, ' | |||
|
727 | 727 | overwrite: False, partial: False |
|
728 | 728 | ancestor: 924404dff337, local: 02963e448370+, remote: 2b958612230f |
|
729 | 729 | b: local copied/moved to a -> m |
|
730 | rev: versions differ -> m | |
|
730 | preserving b for resolve of b | |
|
731 | 731 | c: remote created -> g |
|
732 | preserving b for resolve of b | |
|
732 | rev: versions differ -> m | |
|
733 | 733 | preserving rev for resolve of rev |
|
734 | 734 | updating: b 1/3 files (33.33%) |
|
735 | 735 | picked tool 'python ../merge' for b (binary False symlink False) |
@@ -47,8 +47,8 b'' | |||
|
47 | 47 | overwrite: False, partial: False |
|
48 | 48 | ancestor: c19d34741b0a, local: c19d34741b0a+, remote: 1e71731e6fbb |
|
49 | 49 | a: versions differ -> m |
|
50 | preserving a for resolve of a | |
|
50 | 51 | b: remote created -> g |
|
51 | preserving a for resolve of a | |
|
52 | 52 | updating: a 1/2 files (50.00%) |
|
53 | 53 | picked tool 'true' for a (binary False symlink False) |
|
54 | 54 | merging a |
@@ -67,8 +67,8 b'' | |||
|
67 | 67 | resolving manifests |
|
68 | 68 | overwrite: False, partial: False |
|
69 | 69 | ancestor: 1e71731e6fbb, local: 1e71731e6fbb+, remote: c19d34741b0a |
|
70 | b: other deleted -> r | |
|
70 | 71 | a: versions differ -> m |
|
71 | b: other deleted -> r | |
|
72 | 72 | preserving a for resolve of a |
|
73 | 73 | updating: b 1/2 files (50.00%) |
|
74 | 74 | removing b |
@@ -101,8 +101,8 b'' | |||
|
101 | 101 | overwrite: False, partial: False |
|
102 | 102 | ancestor: c19d34741b0a, local: c19d34741b0a+, remote: 1e71731e6fbb |
|
103 | 103 | a: versions differ -> m |
|
104 | preserving a for resolve of a | |
|
104 | 105 | b: remote created -> g |
|
105 | preserving a for resolve of a | |
|
106 | 106 | updating: a 1/2 files (50.00%) |
|
107 | 107 | picked tool 'true' for a (binary False symlink False) |
|
108 | 108 | merging a |
@@ -179,8 +179,8 b' create a second head' | |||
|
179 | 179 | overwrite: False, partial: False |
|
180 | 180 | ancestor: c19d34741b0a, local: 1e71731e6fbb+, remote: 83c51d0caff4 |
|
181 | 181 | a: versions differ -> m |
|
182 | preserving a for resolve of a | |
|
182 | 183 | b: versions differ -> m |
|
183 | preserving a for resolve of a | |
|
184 | 184 | preserving b for resolve of b |
|
185 | 185 | updating: a 1/2 files (50.00%) |
|
186 | 186 | picked tool 'true' for a (binary False symlink False) |
General Comments 0
You need to be logged in to leave comments.
Login now