Show More
@@ -815,7 +815,8 b' def debugdiscovery(ui, repo, remoteurl="' | |||
|
815 | 815 | |
|
816 | 816 | remoterevs, _checkout = hg.addbranchrevs(repo, remote, branches, revs=None) |
|
817 | 817 | localrevs = opts['rev'] |
|
818 | common, hds = doit(localrevs, remoterevs) | |
|
818 | with util.timedcm('debug-discovery') as t: | |
|
819 | common, hds = doit(localrevs, remoterevs) | |
|
819 | 820 | |
|
820 | 821 | # compute all statistics |
|
821 | 822 | common = set(common) |
@@ -823,6 +824,7 b' def debugdiscovery(ui, repo, remoteurl="' | |||
|
823 | 824 | lheads = set(repo.heads()) |
|
824 | 825 | |
|
825 | 826 | data = {} |
|
827 | data['elapsed'] = t.elapsed | |
|
826 | 828 | data['nb-common'] = len(common) |
|
827 | 829 | data['nb-common-local'] = len(common & lheads) |
|
828 | 830 | data['nb-common-remote'] = len(common & rheads) |
@@ -835,6 +837,7 b' def debugdiscovery(ui, repo, remoteurl="' | |||
|
835 | 837 | data['nb-revs-missing'] = data['nb-revs'] - data['nb-revs-common'] |
|
836 | 838 | |
|
837 | 839 | # display discovery summary |
|
840 | ui.write(("elapsed time: %(elapsed)f seconds\n") % data) | |
|
838 | 841 | ui.write(("heads summary:\n")) |
|
839 | 842 | ui.write((" total common heads: %(nb-common)9d\n") % data) |
|
840 | 843 | ui.write((" also local heads: %(nb-common-local)9d\n") % data) |
@@ -43,6 +43,7 b' Small superset:' | |||
|
43 | 43 | comparing with b |
|
44 | 44 | searching for changes |
|
45 | 45 | unpruned common: 01241442b3c2 66f7d451a68b b5714e113bc0 |
|
46 | elapsed time: * seconds (glob) | |
|
46 | 47 | heads summary: |
|
47 | 48 | total common heads: 2 |
|
48 | 49 | also local heads: 2 |
@@ -63,6 +64,7 b' Small superset:' | |||
|
63 | 64 | query 1; heads |
|
64 | 65 | searching for changes |
|
65 | 66 | all local heads known remotely |
|
67 | elapsed time: * seconds (glob) | |
|
66 | 68 | heads summary: |
|
67 | 69 | total common heads: 2 |
|
68 | 70 | also local heads: 2 |
@@ -83,6 +85,7 b' Small superset:' | |||
|
83 | 85 | query 1; heads |
|
84 | 86 | searching for changes |
|
85 | 87 | all local heads known remotely |
|
88 | elapsed time: * seconds (glob) | |
|
86 | 89 | heads summary: |
|
87 | 90 | total common heads: 1 |
|
88 | 91 | also local heads: 1 |
@@ -102,6 +105,7 b' Small superset:' | |||
|
102 | 105 | comparing with a |
|
103 | 106 | searching for changes |
|
104 | 107 | unpruned common: 01241442b3c2 b5714e113bc0 |
|
108 | elapsed time: * seconds (glob) | |
|
105 | 109 | heads summary: |
|
106 | 110 | total common heads: 2 |
|
107 | 111 | also local heads: 1 |
@@ -122,6 +126,7 b' Small superset:' | |||
|
122 | 126 | query 1; heads |
|
123 | 127 | searching for changes |
|
124 | 128 | all remote heads known locally |
|
129 | elapsed time: * seconds (glob) | |
|
125 | 130 | heads summary: |
|
126 | 131 | total common heads: 2 |
|
127 | 132 | also local heads: 1 |
@@ -142,6 +147,7 b' Small superset:' | |||
|
142 | 147 | query 1; heads |
|
143 | 148 | searching for changes |
|
144 | 149 | all remote heads known locally |
|
150 | elapsed time: * seconds (glob) | |
|
145 | 151 | heads summary: |
|
146 | 152 | total common heads: 2 |
|
147 | 153 | also local heads: 1 |
@@ -168,6 +174,7 b' Many new:' | |||
|
168 | 174 | comparing with b |
|
169 | 175 | searching for changes |
|
170 | 176 | unpruned common: bebd167eb94d |
|
177 | elapsed time: * seconds (glob) | |
|
171 | 178 | heads summary: |
|
172 | 179 | total common heads: 1 |
|
173 | 180 | also local heads: 1 |
@@ -191,6 +198,7 b' Many new:' | |||
|
191 | 198 | searching: 2 queries |
|
192 | 199 | query 2; still undecided: 29, sample size is: 29 |
|
193 | 200 | 2 total queries in *.????s (glob) |
|
201 | elapsed time: * seconds (glob) | |
|
194 | 202 | heads summary: |
|
195 | 203 | total common heads: 1 |
|
196 | 204 | also local heads: 1 |
@@ -214,6 +222,7 b' Many new:' | |||
|
214 | 222 | searching: 2 queries |
|
215 | 223 | query 2; still undecided: 31, sample size is: 31 |
|
216 | 224 | 2 total queries in *.????s (glob) |
|
225 | elapsed time: * seconds (glob) | |
|
217 | 226 | heads summary: |
|
218 | 227 | total common heads: 1 |
|
219 | 228 | also local heads: 0 |
@@ -233,6 +242,7 b' Many new:' | |||
|
233 | 242 | comparing with a |
|
234 | 243 | searching for changes |
|
235 | 244 | unpruned common: 66f7d451a68b bebd167eb94d |
|
245 | elapsed time: * seconds (glob) | |
|
236 | 246 | heads summary: |
|
237 | 247 | total common heads: 1 |
|
238 | 248 | also local heads: 0 |
@@ -256,6 +266,7 b' Many new:' | |||
|
256 | 266 | searching: 2 queries |
|
257 | 267 | query 2; still undecided: 2, sample size is: 2 |
|
258 | 268 | 2 total queries in *.????s (glob) |
|
269 | elapsed time: * seconds (glob) | |
|
259 | 270 | heads summary: |
|
260 | 271 | total common heads: 1 |
|
261 | 272 | also local heads: 0 |
@@ -279,6 +290,7 b' Many new:' | |||
|
279 | 290 | searching: 2 queries |
|
280 | 291 | query 2; still undecided: 2, sample size is: 2 |
|
281 | 292 | 2 total queries in *.????s (glob) |
|
293 | elapsed time: * seconds (glob) | |
|
282 | 294 | heads summary: |
|
283 | 295 | total common heads: 1 |
|
284 | 296 | also local heads: 0 |
@@ -304,6 +316,7 b' Both sides many new with stub:' | |||
|
304 | 316 | comparing with b |
|
305 | 317 | searching for changes |
|
306 | 318 | unpruned common: 2dc09a01254d |
|
319 | elapsed time: * seconds (glob) | |
|
307 | 320 | heads summary: |
|
308 | 321 | total common heads: 1 |
|
309 | 322 | also local heads: 1 |
@@ -327,6 +340,7 b' Both sides many new with stub:' | |||
|
327 | 340 | searching: 2 queries |
|
328 | 341 | query 2; still undecided: 29, sample size is: 29 |
|
329 | 342 | 2 total queries in *.????s (glob) |
|
343 | elapsed time: * seconds (glob) | |
|
330 | 344 | heads summary: |
|
331 | 345 | total common heads: 1 |
|
332 | 346 | also local heads: 1 |
@@ -350,6 +364,7 b' Both sides many new with stub:' | |||
|
350 | 364 | searching: 2 queries |
|
351 | 365 | query 2; still undecided: 31, sample size is: 31 |
|
352 | 366 | 2 total queries in *.????s (glob) |
|
367 | elapsed time: * seconds (glob) | |
|
353 | 368 | heads summary: |
|
354 | 369 | total common heads: 1 |
|
355 | 370 | also local heads: 0 |
@@ -369,6 +384,7 b' Both sides many new with stub:' | |||
|
369 | 384 | comparing with a |
|
370 | 385 | searching for changes |
|
371 | 386 | unpruned common: 2dc09a01254d 66f7d451a68b |
|
387 | elapsed time: * seconds (glob) | |
|
372 | 388 | heads summary: |
|
373 | 389 | total common heads: 1 |
|
374 | 390 | also local heads: 0 |
@@ -392,6 +408,7 b' Both sides many new with stub:' | |||
|
392 | 408 | searching: 2 queries |
|
393 | 409 | query 2; still undecided: 29, sample size is: 29 |
|
394 | 410 | 2 total queries in *.????s (glob) |
|
411 | elapsed time: * seconds (glob) | |
|
395 | 412 | heads summary: |
|
396 | 413 | total common heads: 1 |
|
397 | 414 | also local heads: 0 |
@@ -415,6 +432,7 b' Both sides many new with stub:' | |||
|
415 | 432 | searching: 2 queries |
|
416 | 433 | query 2; still undecided: 29, sample size is: 29 |
|
417 | 434 | 2 total queries in *.????s (glob) |
|
435 | elapsed time: * seconds (glob) | |
|
418 | 436 | heads summary: |
|
419 | 437 | total common heads: 1 |
|
420 | 438 | also local heads: 0 |
@@ -441,6 +459,7 b' Both many new:' | |||
|
441 | 459 | comparing with b |
|
442 | 460 | searching for changes |
|
443 | 461 | unpruned common: 66f7d451a68b |
|
462 | elapsed time: * seconds (glob) | |
|
444 | 463 | heads summary: |
|
445 | 464 | total common heads: 1 |
|
446 | 465 | also local heads: 0 |
@@ -464,6 +483,7 b' Both many new:' | |||
|
464 | 483 | searching: 2 queries |
|
465 | 484 | query 2; still undecided: 31, sample size is: 31 |
|
466 | 485 | 2 total queries in *.????s (glob) |
|
486 | elapsed time: * seconds (glob) | |
|
467 | 487 | heads summary: |
|
468 | 488 | total common heads: 1 |
|
469 | 489 | also local heads: 0 |
@@ -487,6 +507,7 b' Both many new:' | |||
|
487 | 507 | searching: 2 queries |
|
488 | 508 | query 2; still undecided: 31, sample size is: 31 |
|
489 | 509 | 2 total queries in *.????s (glob) |
|
510 | elapsed time: * seconds (glob) | |
|
490 | 511 | heads summary: |
|
491 | 512 | total common heads: 1 |
|
492 | 513 | also local heads: 0 |
@@ -506,6 +527,7 b' Both many new:' | |||
|
506 | 527 | comparing with a |
|
507 | 528 | searching for changes |
|
508 | 529 | unpruned common: 66f7d451a68b |
|
530 | elapsed time: * seconds (glob) | |
|
509 | 531 | heads summary: |
|
510 | 532 | total common heads: 1 |
|
511 | 533 | also local heads: 0 |
@@ -529,6 +551,7 b' Both many new:' | |||
|
529 | 551 | searching: 2 queries |
|
530 | 552 | query 2; still undecided: 31, sample size is: 31 |
|
531 | 553 | 2 total queries in *.????s (glob) |
|
554 | elapsed time: * seconds (glob) | |
|
532 | 555 | heads summary: |
|
533 | 556 | total common heads: 1 |
|
534 | 557 | also local heads: 0 |
@@ -552,6 +575,7 b' Both many new:' | |||
|
552 | 575 | searching: 2 queries |
|
553 | 576 | query 2; still undecided: 31, sample size is: 31 |
|
554 | 577 | 2 total queries in *.????s (glob) |
|
578 | elapsed time: * seconds (glob) | |
|
555 | 579 | heads summary: |
|
556 | 580 | total common heads: 1 |
|
557 | 581 | also local heads: 0 |
@@ -578,6 +602,7 b' Both many new skewed:' | |||
|
578 | 602 | comparing with b |
|
579 | 603 | searching for changes |
|
580 | 604 | unpruned common: 66f7d451a68b |
|
605 | elapsed time: * seconds (glob) | |
|
581 | 606 | heads summary: |
|
582 | 607 | total common heads: 1 |
|
583 | 608 | also local heads: 0 |
@@ -601,6 +626,7 b' Both many new skewed:' | |||
|
601 | 626 | searching: 2 queries |
|
602 | 627 | query 2; still undecided: 51, sample size is: 51 |
|
603 | 628 | 2 total queries in *.????s (glob) |
|
629 | elapsed time: * seconds (glob) | |
|
604 | 630 | heads summary: |
|
605 | 631 | total common heads: 1 |
|
606 | 632 | also local heads: 0 |
@@ -624,6 +650,7 b' Both many new skewed:' | |||
|
624 | 650 | searching: 2 queries |
|
625 | 651 | query 2; still undecided: 51, sample size is: 51 |
|
626 | 652 | 2 total queries in *.????s (glob) |
|
653 | elapsed time: * seconds (glob) | |
|
627 | 654 | heads summary: |
|
628 | 655 | total common heads: 1 |
|
629 | 656 | also local heads: 0 |
@@ -643,6 +670,7 b' Both many new skewed:' | |||
|
643 | 670 | comparing with a |
|
644 | 671 | searching for changes |
|
645 | 672 | unpruned common: 66f7d451a68b |
|
673 | elapsed time: * seconds (glob) | |
|
646 | 674 | heads summary: |
|
647 | 675 | total common heads: 1 |
|
648 | 676 | also local heads: 0 |
@@ -666,6 +694,7 b' Both many new skewed:' | |||
|
666 | 694 | searching: 2 queries |
|
667 | 695 | query 2; still undecided: 31, sample size is: 31 |
|
668 | 696 | 2 total queries in *.????s (glob) |
|
697 | elapsed time: * seconds (glob) | |
|
669 | 698 | heads summary: |
|
670 | 699 | total common heads: 1 |
|
671 | 700 | also local heads: 0 |
@@ -689,6 +718,7 b' Both many new skewed:' | |||
|
689 | 718 | searching: 2 queries |
|
690 | 719 | query 2; still undecided: 31, sample size is: 31 |
|
691 | 720 | 2 total queries in *.????s (glob) |
|
721 | elapsed time: * seconds (glob) | |
|
692 | 722 | heads summary: |
|
693 | 723 | total common heads: 1 |
|
694 | 724 | also local heads: 0 |
@@ -715,6 +745,7 b' Both many new on top of long history:' | |||
|
715 | 745 | comparing with b |
|
716 | 746 | searching for changes |
|
717 | 747 | unpruned common: 7ead0cba2838 |
|
748 | elapsed time: * seconds (glob) | |
|
718 | 749 | heads summary: |
|
719 | 750 | total common heads: 1 |
|
720 | 751 | also local heads: 0 |
@@ -741,6 +772,7 b' Both many new on top of long history:' | |||
|
741 | 772 | searching: 3 queries |
|
742 | 773 | query 3; still undecided: 31, sample size is: 31 |
|
743 | 774 | 3 total queries in *.????s (glob) |
|
775 | elapsed time: * seconds (glob) | |
|
744 | 776 | heads summary: |
|
745 | 777 | total common heads: 1 |
|
746 | 778 | also local heads: 0 |
@@ -767,6 +799,7 b' Both many new on top of long history:' | |||
|
767 | 799 | searching: 3 queries |
|
768 | 800 | query 3; still undecided: 31, sample size is: 31 |
|
769 | 801 | 3 total queries in *.????s (glob) |
|
802 | elapsed time: * seconds (glob) | |
|
770 | 803 | heads summary: |
|
771 | 804 | total common heads: 1 |
|
772 | 805 | also local heads: 0 |
@@ -786,6 +819,7 b' Both many new on top of long history:' | |||
|
786 | 819 | comparing with a |
|
787 | 820 | searching for changes |
|
788 | 821 | unpruned common: 7ead0cba2838 |
|
822 | elapsed time: * seconds (glob) | |
|
789 | 823 | heads summary: |
|
790 | 824 | total common heads: 1 |
|
791 | 825 | also local heads: 0 |
@@ -812,6 +846,7 b' Both many new on top of long history:' | |||
|
812 | 846 | searching: 3 queries |
|
813 | 847 | query 3; still undecided: 15, sample size is: 15 |
|
814 | 848 | 3 total queries in *.????s (glob) |
|
849 | elapsed time: * seconds (glob) | |
|
815 | 850 | heads summary: |
|
816 | 851 | total common heads: 1 |
|
817 | 852 | also local heads: 0 |
@@ -838,6 +873,7 b' Both many new on top of long history:' | |||
|
838 | 873 | searching: 3 queries |
|
839 | 874 | query 3; still undecided: 15, sample size is: 15 |
|
840 | 875 | 3 total queries in *.????s (glob) |
|
876 | elapsed time: * seconds (glob) | |
|
841 | 877 | heads summary: |
|
842 | 878 | total common heads: 1 |
|
843 | 879 | also local heads: 0 |
@@ -916,6 +952,7 b' One with >200 heads, which used to use u' | |||
|
916 | 952 | searching: 6 queries |
|
917 | 953 | query 6; still undecided: \d+, sample size is: \d+ (re) |
|
918 | 954 | 6 total queries in *.????s (glob) |
|
955 | elapsed time: * seconds (glob) | |
|
919 | 956 | heads summary: |
|
920 | 957 | total common heads: 1 |
|
921 | 958 | also local heads: 0 |
@@ -941,6 +978,7 b' One with >200 heads, which used to use u' | |||
|
941 | 978 | searching: 3 queries |
|
942 | 979 | query 3; still undecided: 3, sample size is: 3 |
|
943 | 980 | 3 total queries in *.????s (glob) |
|
981 | elapsed time: * seconds (glob) | |
|
944 | 982 | heads summary: |
|
945 | 983 | total common heads: 1 |
|
946 | 984 | also local heads: 0 |
General Comments 0
You need to be logged in to leave comments.
Login now