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