##// END OF EJS Templates
copies: print debug information about copies per side/branch...
Martin von Zweigbergk -
r44679:17e12938 default
parent child Browse files
Show More
@@ -630,9 +630,6 def _fullcopytracing(repo, c1, c2, base)
630 if u2:
630 if u2:
631 repo.ui.debug(b"%s:\n %s\n" % (header % b'other', b"\n ".join(u2)))
631 repo.ui.debug(b"%s:\n %s\n" % (header % b'other', b"\n ".join(u2)))
632
632
633 fullcopy = copies1.copy()
634 fullcopy.update(copies2)
635
636 if repo.ui.debugflag:
633 if repo.ui.debugflag:
637 renamedeleteset = set()
634 renamedeleteset = set()
638 divergeset = set()
635 divergeset = set()
@@ -647,7 +644,11 def _fullcopytracing(repo, c1, c2, base)
647 b" all copies found (* = to merge, ! = divergent, "
644 b" all copies found (* = to merge, ! = divergent, "
648 b"% = renamed and deleted):\n"
645 b"% = renamed and deleted):\n"
649 )
646 )
650 for f in sorted(fullcopy):
647 for side, copies in ((b"local", copies1), (b"remote", copies2)):
648 if not copies:
649 continue
650 repo.ui.debug(b" on %s side:\n" % side)
651 for f in sorted(copies):
651 note = b""
652 note = b""
652 if f in copy1 or f in copy2:
653 if f in copy1 or f in copy2:
653 note += b"*"
654 note += b"*"
@@ -656,7 +657,7 def _fullcopytracing(repo, c1, c2, base)
656 if f in renamedeleteset:
657 if f in renamedeleteset:
657 note += b"%"
658 note += b"%"
658 repo.ui.debug(
659 repo.ui.debug(
659 b" src: '%s' -> dst: '%s' %s\n" % (fullcopy[f], f, note)
660 b" src: '%s' -> dst: '%s' %s\n" % (copies[f], f, note)
660 )
661 )
661 del renamedeleteset
662 del renamedeleteset
662 del divergeset
663 del divergeset
@@ -27,6 +27,7 Test for the full copytracing algorithm
27 b
27 b
28 c
28 c
29 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
29 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
30 on remote side:
30 src: 'a' -> dst: 'b' *
31 src: 'a' -> dst: 'b' *
31 src: 'a' -> dst: 'c' *
32 src: 'a' -> dst: 'c' *
32 checking for directory renames
33 checking for directory renames
@@ -29,6 +29,7 we get conflicts that shouldn't be there
29 unmatched files in other:
29 unmatched files in other:
30 bar
30 bar
31 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
31 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
32 on remote side:
32 src: 'foo' -> dst: 'bar' *
33 src: 'foo' -> dst: 'bar' *
33 checking for directory renames
34 checking for directory renames
34 resolving manifests
35 resolving manifests
@@ -204,6 +204,7 Graft out of order, skipping a merge and
204 unmatched files in local:
204 unmatched files in local:
205 b
205 b
206 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
206 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
207 on local side:
207 src: 'a' -> dst: 'b' *
208 src: 'a' -> dst: 'b' *
208 checking for directory renames
209 checking for directory renames
209 resolving manifests
210 resolving manifests
@@ -223,6 +224,7 Graft out of order, skipping a merge and
223 updating the branch cache
224 updating the branch cache
224 grafting 5:97f8bfe72746 "5"
225 grafting 5:97f8bfe72746 "5"
225 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
226 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
227 on local side:
226 src: 'c' -> dst: 'b'
228 src: 'c' -> dst: 'b'
227 checking for directory renames
229 checking for directory renames
228 resolving manifests
230 resolving manifests
@@ -239,6 +241,7 Graft out of order, skipping a merge and
239 scanning for duplicate grafts
241 scanning for duplicate grafts
240 grafting 4:9c233e8e184d "4"
242 grafting 4:9c233e8e184d "4"
241 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
243 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
244 on local side:
242 src: 'c' -> dst: 'b'
245 src: 'c' -> dst: 'b'
243 checking for directory renames
246 checking for directory renames
244 resolving manifests
247 resolving manifests
@@ -746,6 +749,9 Transplants of grafts can find a destina
746 scanning for duplicate grafts
749 scanning for duplicate grafts
747 grafting 13:7a4785234d87 "2"
750 grafting 13:7a4785234d87 "2"
748 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
751 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
752 on local side:
753 src: 'a' -> dst: 'b' *
754 on remote side:
749 src: 'a' -> dst: 'b' *
755 src: 'a' -> dst: 'b' *
750 checking for directory renames
756 checking for directory renames
751 resolving manifests
757 resolving manifests
@@ -28,6 +28,7 https://bz.mercurial-scm.org/672
28 unmatched files in other:
28 unmatched files in other:
29 1a
29 1a
30 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
30 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
31 on remote side:
31 src: '1' -> dst: '1a'
32 src: '1' -> dst: '1a'
32 checking for directory renames
33 checking for directory renames
33 resolving manifests
34 resolving manifests
@@ -56,6 +57,7 https://bz.mercurial-scm.org/672
56 unmatched files in local:
57 unmatched files in local:
57 1a
58 1a
58 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
59 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
60 on local side:
59 src: '1' -> dst: '1a' *
61 src: '1' -> dst: '1a' *
60 checking for directory renames
62 checking for directory renames
61 resolving manifests
63 resolving manifests
@@ -78,6 +80,7 https://bz.mercurial-scm.org/672
78 unmatched files in other:
80 unmatched files in other:
79 1a
81 1a
80 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
82 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
83 on remote side:
81 src: '1' -> dst: '1a' *
84 src: '1' -> dst: '1a' *
82 checking for directory renames
85 checking for directory renames
83 resolving manifests
86 resolving manifests
@@ -419,6 +419,7 Verify that the old context ancestor wor
419 unmatched files in other:
419 unmatched files in other:
420 d2/b
420 d2/b
421 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
421 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
422 on remote side:
422 src: 'd1/b' -> dst: 'd2/b'
423 src: 'd1/b' -> dst: 'd2/b'
423 checking for directory renames
424 checking for directory renames
424 discovered dir src: 'd1/' -> dst: 'd2/'
425 discovered dir src: 'd1/' -> dst: 'd2/'
@@ -30,6 +30,7
30 b/a
30 b/a
31 b/b
31 b/b
32 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
32 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
33 on remote side:
33 src: 'a/a' -> dst: 'b/a'
34 src: 'a/a' -> dst: 'b/a'
34 src: 'a/b' -> dst: 'b/b'
35 src: 'a/b' -> dst: 'b/b'
35 checking for directory renames
36 checking for directory renames
@@ -75,6 +76,7
75 unmatched files in other:
76 unmatched files in other:
76 a/c
77 a/c
77 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
78 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
79 on local side:
78 src: 'a/a' -> dst: 'b/a'
80 src: 'a/a' -> dst: 'b/a'
79 src: 'a/b' -> dst: 'b/b'
81 src: 'a/b' -> dst: 'b/b'
80 checking for directory renames
82 checking for directory renames
@@ -28,9 +28,11
28 b
28 b
29 b2
29 b2
30 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
30 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
31 on local side:
32 src: 'a2' -> dst: 'c2' !
33 on remote side:
31 src: 'a' -> dst: 'b' *
34 src: 'a' -> dst: 'b' *
32 src: 'a2' -> dst: 'b2' !
35 src: 'a2' -> dst: 'b2' !
33 src: 'a2' -> dst: 'c2' !
34 checking for directory renames
36 checking for directory renames
35 resolving manifests
37 resolving manifests
36 branchmerge: True, force: False, partial: False
38 branchmerge: True, force: False, partial: False
@@ -170,6 +172,7 Check for issue3074
170 unmatched files in other:
172 unmatched files in other:
171 newfile
173 newfile
172 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
174 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
175 on remote side:
173 src: 'file' -> dst: 'newfile' %
176 src: 'file' -> dst: 'newfile' %
174 checking for directory renames
177 checking for directory renames
175 resolving manifests
178 resolving manifests
@@ -206,6 +209,9 modify x and rename y to z on the other
206 # we should not get the prompts about modify/delete conflicts
209 # we should not get the prompts about modify/delete conflicts
207 $ hg merge --debug 1 -t :merge3
210 $ hg merge --debug 1 -t :merge3
208 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
211 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
212 on local side:
213 src: 'y' -> dst: 'z'
214 on remote side:
209 src: 'x' -> dst: 'z'
215 src: 'x' -> dst: 'z'
210 checking for directory renames
216 checking for directory renames
211 resolving manifests
217 resolving manifests
@@ -79,6 +79,7 args:
79 unmatched files in other:
79 unmatched files in other:
80 b
80 b
81 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
81 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
82 on remote side:
82 src: 'a' -> dst: 'b' *
83 src: 'a' -> dst: 'b' *
83 checking for directory renames
84 checking for directory renames
84 resolving manifests
85 resolving manifests
@@ -117,6 +118,7 args:
117 unmatched files in local:
118 unmatched files in local:
118 b
119 b
119 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
120 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
121 on local side:
120 src: 'a' -> dst: 'b' *
122 src: 'a' -> dst: 'b' *
121 checking for directory renames
123 checking for directory renames
122 resolving manifests
124 resolving manifests
@@ -156,6 +158,7 args:
156 unmatched files in other:
158 unmatched files in other:
157 b
159 b
158 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
160 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
161 on remote side:
159 src: 'a' -> dst: 'b' *
162 src: 'a' -> dst: 'b' *
160 checking for directory renames
163 checking for directory renames
161 resolving manifests
164 resolving manifests
@@ -194,6 +197,7 args:
194 unmatched files in local:
197 unmatched files in local:
195 b
198 b
196 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
199 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
200 on local side:
197 src: 'a' -> dst: 'b' *
201 src: 'a' -> dst: 'b' *
198 checking for directory renames
202 checking for directory renames
199 resolving manifests
203 resolving manifests
@@ -231,6 +235,7 args:
231 unmatched files in other:
235 unmatched files in other:
232 b
236 b
233 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
237 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
238 on remote side:
234 src: 'a' -> dst: 'b'
239 src: 'a' -> dst: 'b'
235 checking for directory renames
240 checking for directory renames
236 resolving manifests
241 resolving manifests
@@ -263,6 +268,7 args:
263 unmatched files in local:
268 unmatched files in local:
264 b
269 b
265 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
270 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
271 on local side:
266 src: 'a' -> dst: 'b'
272 src: 'a' -> dst: 'b'
267 checking for directory renames
273 checking for directory renames
268 resolving manifests
274 resolving manifests
@@ -294,6 +300,7 args:
294 unmatched files in other:
300 unmatched files in other:
295 b
301 b
296 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
302 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
303 on remote side:
297 src: 'a' -> dst: 'b'
304 src: 'a' -> dst: 'b'
298 checking for directory renames
305 checking for directory renames
299 resolving manifests
306 resolving manifests
@@ -327,6 +334,7 args:
327 unmatched files in local:
334 unmatched files in local:
328 b
335 b
329 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
336 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
337 on local side:
330 src: 'a' -> dst: 'b'
338 src: 'a' -> dst: 'b'
331 checking for directory renames
339 checking for directory renames
332 resolving manifests
340 resolving manifests
@@ -355,6 +363,9 args:
355 test L:um a b R:um a b W: - 9 do merge with ancestor in a
363 test L:um a b R:um a b W: - 9 do merge with ancestor in a
356 --------------
364 --------------
357 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
365 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
366 on local side:
367 src: 'a' -> dst: 'b' *
368 on remote side:
358 src: 'a' -> dst: 'b' *
369 src: 'a' -> dst: 'b' *
359 checking for directory renames
370 checking for directory renames
360 resolving manifests
371 resolving manifests
@@ -400,7 +411,9 m "um a c" "um x c" " " "10 do merg
400 unmatched files in other:
411 unmatched files in other:
401 c
412 c
402 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
413 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
414 on local side:
403 src: 'a' -> dst: 'b' !
415 src: 'a' -> dst: 'b' !
416 on remote side:
404 src: 'a' -> dst: 'c' !
417 src: 'a' -> dst: 'c' !
405 checking for directory renames
418 checking for directory renames
406 resolving manifests
419 resolving manifests
@@ -434,6 +447,7 m "um a c" "um x c" " " "10 do merg
434 test L:nc a b R:up b W: - 12 merge b no ancestor
447 test L:nc a b R:up b W: - 12 merge b no ancestor
435 --------------
448 --------------
436 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
449 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
450 on local side:
437 src: 'a' -> dst: 'b'
451 src: 'a' -> dst: 'b'
438 checking for directory renames
452 checking for directory renames
439 resolving manifests
453 resolving manifests
@@ -473,6 +487,7 m "um a c" "um x c" " " "10 do merg
473 test L:up b R:nm a b W: - 13 merge b no ancestor
487 test L:up b R:nm a b W: - 13 merge b no ancestor
474 --------------
488 --------------
475 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
489 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
490 on remote side:
476 src: 'a' -> dst: 'b'
491 src: 'a' -> dst: 'b'
477 checking for directory renames
492 checking for directory renames
478 resolving manifests
493 resolving manifests
@@ -513,6 +528,7 m "um a c" "um x c" " " "10 do merg
513 test L:nc a b R:up a b W: - 14 merge b no ancestor
528 test L:nc a b R:up a b W: - 14 merge b no ancestor
514 --------------
529 --------------
515 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
530 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
531 on local side:
516 src: 'a' -> dst: 'b'
532 src: 'a' -> dst: 'b'
517 checking for directory renames
533 checking for directory renames
518 resolving manifests
534 resolving manifests
@@ -553,6 +569,7 m "um a c" "um x c" " " "10 do merg
553 test L:up b R:nm a b W: - 15 merge b no ancestor, remove a
569 test L:up b R:nm a b W: - 15 merge b no ancestor, remove a
554 --------------
570 --------------
555 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
571 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
572 on remote side:
556 src: 'a' -> dst: 'b'
573 src: 'a' -> dst: 'b'
557 checking for directory renames
574 checking for directory renames
558 resolving manifests
575 resolving manifests
@@ -593,6 +610,7 m "um a c" "um x c" " " "10 do merg
593 test L:nc a b R:up a b W: - 16 get a, merge b no ancestor
610 test L:nc a b R:up a b W: - 16 get a, merge b no ancestor
594 --------------
611 --------------
595 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
612 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
613 on local side:
596 src: 'a' -> dst: 'b'
614 src: 'a' -> dst: 'b'
597 checking for directory renames
615 checking for directory renames
598 resolving manifests
616 resolving manifests
@@ -633,6 +651,7 m "um a c" "um x c" " " "10 do merg
633 test L:up a b R:nc a b W: - 17 keep a, merge b no ancestor
651 test L:up a b R:nc a b W: - 17 keep a, merge b no ancestor
634 --------------
652 --------------
635 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
653 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
654 on remote side:
636 src: 'a' -> dst: 'b'
655 src: 'a' -> dst: 'b'
637 checking for directory renames
656 checking for directory renames
638 resolving manifests
657 resolving manifests
@@ -672,6 +691,7 m "um a c" "um x c" " " "10 do merg
672 test L:nm a b R:up a b W: - 18 merge b no ancestor
691 test L:nm a b R:up a b W: - 18 merge b no ancestor
673 --------------
692 --------------
674 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
693 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
694 on local side:
675 src: 'a' -> dst: 'b'
695 src: 'a' -> dst: 'b'
676 checking for directory renames
696 checking for directory renames
677 resolving manifests
697 resolving manifests
@@ -717,6 +737,7 m "um a c" "um x c" " " "10 do merg
717 test L:up a b R:nm a b W: - 19 merge b no ancestor, prompt remove a
737 test L:up a b R:nm a b W: - 19 merge b no ancestor, prompt remove a
718 --------------
738 --------------
719 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
739 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
740 on remote side:
720 src: 'a' -> dst: 'b'
741 src: 'a' -> dst: 'b'
721 checking for directory renames
742 checking for directory renames
722 resolving manifests
743 resolving manifests
@@ -765,6 +786,7 m "um a c" "um x c" " " "10 do merg
765 unmatched files in other:
786 unmatched files in other:
766 b
787 b
767 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
788 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
789 on remote side:
768 src: 'a' -> dst: 'b' *
790 src: 'a' -> dst: 'b' *
769 checking for directory renames
791 checking for directory renames
770 resolving manifests
792 resolving manifests
@@ -807,6 +829,7 m "um a c" "um x c" " " "10 do merg
807 unmatched files in local:
829 unmatched files in local:
808 b
830 b
809 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
831 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
832 on local side:
810 src: 'a' -> dst: 'b' *
833 src: 'a' -> dst: 'b' *
811 checking for directory renames
834 checking for directory renames
812 resolving manifests
835 resolving manifests
@@ -853,6 +876,7 m "nm a b" "um x a" " " "22 get a,
853 unmatched files in other:
876 unmatched files in other:
854 c
877 c
855 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
878 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
879 on local side:
856 src: 'a' -> dst: 'b' *
880 src: 'a' -> dst: 'b' *
857 checking for directory renames
881 checking for directory renames
858 resolving manifests
882 resolving manifests
@@ -936,11 +960,14 8 f (f) f f "remote differs from
936 4/g
960 4/g
937 7/f
961 7/f
938 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
962 all copies found (* = to merge, ! = divergent, % = renamed and deleted):
963 on local side:
964 src: '1/f' -> dst: '1/g' *
965 src: '5/f' -> dst: '5/g' *
966 src: '6/f' -> dst: '6/g' *
967 on remote side:
939 src: '1/f' -> dst: '1/g' *
968 src: '1/f' -> dst: '1/g' *
940 src: '3/f' -> dst: '3/g' *
969 src: '3/f' -> dst: '3/g' *
941 src: '4/f' -> dst: '4/g' *
970 src: '4/f' -> dst: '4/g' *
942 src: '5/f' -> dst: '5/g' *
943 src: '6/f' -> dst: '6/g' *
944 checking for directory renames
971 checking for directory renames
945 $ hg mani
972 $ hg mani
946 0/f
973 0/f
General Comments 0
You need to be logged in to leave comments. Login now