Show More
@@ -1379,6 +1379,10 b' def debugdiscovery(ui, repo, remoteurl=b' | |||||
1379 | fm.plain(b"elapsed time: %(elapsed)f seconds\n" % data) |
|
1379 | fm.plain(b"elapsed time: %(elapsed)f seconds\n" % data) | |
1380 | fm.plain(b"round-trips: %(total-roundtrips)9d\n" % data) |
|
1380 | fm.plain(b"round-trips: %(total-roundtrips)9d\n" % data) | |
1381 | fm.plain(b"queries: %(total-queries)9d\n" % data) |
|
1381 | fm.plain(b"queries: %(total-queries)9d\n" % data) | |
|
1382 | if b'total-queries-branches' in data: | |||
|
1383 | fm.plain(b" queries-branches: %(total-queries-branches)9d\n" % data) | |||
|
1384 | if b'total-queries-between' in data: | |||
|
1385 | fm.plain(b" queries-between: %(total-queries-between)9d\n" % data) | |||
1382 | fm.plain(b"heads summary:\n") |
|
1386 | fm.plain(b"heads summary:\n") | |
1383 | fm.plain(b" total common heads: %(nb-common-heads)9d\n" % data) |
|
1387 | fm.plain(b" total common heads: %(nb-common-heads)9d\n" % data) | |
1384 | fm.plain(b" also local heads: %(nb-common-heads-local)9d\n" % data) |
|
1388 | fm.plain(b" also local heads: %(nb-common-heads-local)9d\n" % data) |
@@ -39,6 +39,8 b' def findcommonincoming(repo, remote, hea' | |||||
39 | if audit is not None: |
|
39 | if audit is not None: | |
40 | audit[b'total-roundtrips'] = 1 |
|
40 | audit[b'total-roundtrips'] = 1 | |
41 | audit[b'total-queries'] = 0 |
|
41 | audit[b'total-queries'] = 0 | |
|
42 | audit[b'total-queries-branches'] = 0 | |||
|
43 | audit[b'total-queries-between'] = 0 | |||
42 |
|
44 | |||
43 | if repo.changelog.tip() == repo.nullid: |
|
45 | if repo.changelog.tip() == repo.nullid: | |
44 | base.add(repo.nullid) |
|
46 | base.add(repo.nullid) | |
@@ -71,6 +73,7 b' def findcommonincoming(repo, remote, hea' | |||||
71 | with remote.commandexecutor() as e: |
|
73 | with remote.commandexecutor() as e: | |
72 | if audit is not None: |
|
74 | if audit is not None: | |
73 | audit[b'total-queries'] += len(unknown) |
|
75 | audit[b'total-queries'] += len(unknown) | |
|
76 | audit[b'total-queries-branches'] += len(unknown) | |||
74 | branches = e.callcommand(b'branches', {b'nodes': unknown}).result() |
|
77 | branches = e.callcommand(b'branches', {b'nodes': unknown}).result() | |
75 |
|
78 | |||
76 | unknown = collections.deque(branches) |
|
79 | unknown = collections.deque(branches) | |
@@ -120,6 +123,7 b' def findcommonincoming(repo, remote, hea' | |||||
120 | subset = r[p : p + 10] |
|
123 | subset = r[p : p + 10] | |
121 | if audit is not None: |
|
124 | if audit is not None: | |
122 | audit[b'total-queries'] += len(subset) |
|
125 | audit[b'total-queries'] += len(subset) | |
|
126 | audit[b'total-queries-branches'] += len(subset) | |||
123 | branches = e.callcommand( |
|
127 | branches = e.callcommand( | |
124 | b'branches', |
|
128 | b'branches', | |
125 | { |
|
129 | { | |
@@ -142,6 +146,7 b' def findcommonincoming(repo, remote, hea' | |||||
142 | with remote.commandexecutor() as e: |
|
146 | with remote.commandexecutor() as e: | |
143 | if audit is not None: |
|
147 | if audit is not None: | |
144 | audit[b'total-queries'] += len(search) |
|
148 | audit[b'total-queries'] += len(search) | |
|
149 | audit[b'total-queries-between'] += len(search) | |||
145 | between = e.callcommand(b'between', {b'pairs': search}).result() |
|
150 | between = e.callcommand(b'between', {b'pairs': search}).result() | |
146 |
|
151 | |||
147 | for n, l in zip(search, between): |
|
152 | for n, l in zip(search, between): |
@@ -46,6 +46,8 b' Small superset:' | |||||
46 | elapsed time: * seconds (glob) |
|
46 | elapsed time: * seconds (glob) | |
47 | round-trips: 2 |
|
47 | round-trips: 2 | |
48 | queries: 6 |
|
48 | queries: 6 | |
|
49 | queries-branches: 2 | |||
|
50 | queries-between: 4 | |||
49 | heads summary: |
|
51 | heads summary: | |
50 | total common heads: 2 |
|
52 | total common heads: 2 | |
51 | also local heads: 2 |
|
53 | also local heads: 2 | |
@@ -144,6 +146,8 b' Small superset:' | |||||
144 | elapsed time: * seconds (glob) |
|
146 | elapsed time: * seconds (glob) | |
145 | round-trips: 1 |
|
147 | round-trips: 1 | |
146 | queries: 0 |
|
148 | queries: 0 | |
|
149 | queries-branches: 0 | |||
|
150 | queries-between: 0 | |||
147 | heads summary: |
|
151 | heads summary: | |
148 | total common heads: 2 |
|
152 | total common heads: 2 | |
149 | also local heads: 1 |
|
153 | also local heads: 1 | |
@@ -249,6 +253,8 b' Many new:' | |||||
249 | elapsed time: * seconds (glob) |
|
253 | elapsed time: * seconds (glob) | |
250 | round-trips: 2 |
|
254 | round-trips: 2 | |
251 | queries: 3 |
|
255 | queries: 3 | |
|
256 | queries-branches: 1 | |||
|
257 | queries-between: 2 | |||
252 | heads summary: |
|
258 | heads summary: | |
253 | total common heads: 1 |
|
259 | total common heads: 1 | |
254 | also local heads: 1 |
|
260 | also local heads: 1 | |
@@ -353,6 +359,8 b' Many new:' | |||||
353 | elapsed time: * seconds (glob) |
|
359 | elapsed time: * seconds (glob) | |
354 | round-trips: 4 |
|
360 | round-trips: 4 | |
355 | queries: 5 |
|
361 | queries: 5 | |
|
362 | queries-branches: 1 | |||
|
363 | queries-between: 4 | |||
356 | heads summary: |
|
364 | heads summary: | |
357 | total common heads: 1 |
|
365 | total common heads: 1 | |
358 | also local heads: 0 |
|
366 | also local heads: 0 | |
@@ -463,6 +471,8 b' Both sides many new with stub:' | |||||
463 | elapsed time: * seconds (glob) |
|
471 | elapsed time: * seconds (glob) | |
464 | round-trips: 4 |
|
472 | round-trips: 4 | |
465 | queries: 5 |
|
473 | queries: 5 | |
|
474 | queries-branches: 1 | |||
|
475 | queries-between: 4 | |||
466 | heads summary: |
|
476 | heads summary: | |
467 | total common heads: 1 |
|
477 | total common heads: 1 | |
468 | also local heads: 1 |
|
478 | also local heads: 1 | |
@@ -567,6 +577,8 b' Both sides many new with stub:' | |||||
567 | elapsed time: * seconds (glob) |
|
577 | elapsed time: * seconds (glob) | |
568 | round-trips: 4 |
|
578 | round-trips: 4 | |
569 | queries: 5 |
|
579 | queries: 5 | |
|
580 | queries-branches: 1 | |||
|
581 | queries-between: 4 | |||
570 | heads summary: |
|
582 | heads summary: | |
571 | total common heads: 1 |
|
583 | total common heads: 1 | |
572 | also local heads: 0 |
|
584 | also local heads: 0 | |
@@ -678,6 +690,8 b' Both many new:' | |||||
678 | elapsed time: * seconds (glob) |
|
690 | elapsed time: * seconds (glob) | |
679 | round-trips: 4 |
|
691 | round-trips: 4 | |
680 | queries: 5 |
|
692 | queries: 5 | |
|
693 | queries-branches: 1 | |||
|
694 | queries-between: 4 | |||
681 | heads summary: |
|
695 | heads summary: | |
682 | total common heads: 1 |
|
696 | total common heads: 1 | |
683 | also local heads: 0 |
|
697 | also local heads: 0 | |
@@ -782,6 +796,8 b' Both many new:' | |||||
782 | elapsed time: * seconds (glob) |
|
796 | elapsed time: * seconds (glob) | |
783 | round-trips: 4 |
|
797 | round-trips: 4 | |
784 | queries: 5 |
|
798 | queries: 5 | |
|
799 | queries-branches: 1 | |||
|
800 | queries-between: 4 | |||
785 | heads summary: |
|
801 | heads summary: | |
786 | total common heads: 1 |
|
802 | total common heads: 1 | |
787 | also local heads: 0 |
|
803 | also local heads: 0 | |
@@ -893,6 +909,8 b' Both many new skewed:' | |||||
893 | elapsed time: * seconds (glob) |
|
909 | elapsed time: * seconds (glob) | |
894 | round-trips: 4 |
|
910 | round-trips: 4 | |
895 | queries: 5 |
|
911 | queries: 5 | |
|
912 | queries-branches: 1 | |||
|
913 | queries-between: 4 | |||
896 | heads summary: |
|
914 | heads summary: | |
897 | total common heads: 1 |
|
915 | total common heads: 1 | |
898 | also local heads: 0 |
|
916 | also local heads: 0 | |
@@ -997,6 +1015,8 b' Both many new skewed:' | |||||
997 | elapsed time: * seconds (glob) |
|
1015 | elapsed time: * seconds (glob) | |
998 | round-trips: 3 |
|
1016 | round-trips: 3 | |
999 | queries: 4 |
|
1017 | queries: 4 | |
|
1018 | queries-branches: 1 | |||
|
1019 | queries-between: 3 | |||
1000 | heads summary: |
|
1020 | heads summary: | |
1001 | total common heads: 1 |
|
1021 | total common heads: 1 | |
1002 | also local heads: 0 |
|
1022 | also local heads: 0 | |
@@ -1108,6 +1128,8 b' Both many new on top of long history:' | |||||
1108 | elapsed time: * seconds (glob) |
|
1128 | elapsed time: * seconds (glob) | |
1109 | round-trips: 4 |
|
1129 | round-trips: 4 | |
1110 | queries: 5 |
|
1130 | queries: 5 | |
|
1131 | queries-branches: 1 | |||
|
1132 | queries-between: 4 | |||
1111 | heads summary: |
|
1133 | heads summary: | |
1112 | total common heads: 1 |
|
1134 | total common heads: 1 | |
1113 | also local heads: 0 |
|
1135 | also local heads: 0 | |
@@ -1218,6 +1240,8 b' Both many new on top of long history:' | |||||
1218 | elapsed time: * seconds (glob) |
|
1240 | elapsed time: * seconds (glob) | |
1219 | round-trips: 3 |
|
1241 | round-trips: 3 | |
1220 | queries: 4 |
|
1242 | queries: 4 | |
|
1243 | queries-branches: 1 | |||
|
1244 | queries-between: 3 | |||
1221 | heads summary: |
|
1245 | heads summary: | |
1222 | total common heads: 1 |
|
1246 | total common heads: 1 | |
1223 | also local heads: 0 |
|
1247 | also local heads: 0 |
General Comments 0
You need to be logged in to leave comments.
Login now