Show More
@@ -1378,6 +1378,19 b' def debugdiscovery(ui, repo, remoteurl=b' | |||||
1378 | # display discovery summary |
|
1378 | # display discovery summary | |
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 | if b'total-round-trips-heads' in data: | |||
|
1382 | fm.plain( | |||
|
1383 | b" round-trips-heads: %(total-round-trips-heads)9d\n" % data | |||
|
1384 | ) | |||
|
1385 | if b'total-round-trips-branches' in data: | |||
|
1386 | fm.plain( | |||
|
1387 | b" round-trips-branches: %(total-round-trips-branches)9d\n" | |||
|
1388 | % data | |||
|
1389 | ) | |||
|
1390 | if b'total-round-trips-between' in data: | |||
|
1391 | fm.plain( | |||
|
1392 | b" round-trips-between: %(total-round-trips-between)9d\n" % data | |||
|
1393 | ) | |||
1381 | fm.plain(b"queries: %(total-queries)9d\n" % data) |
|
1394 | fm.plain(b"queries: %(total-queries)9d\n" % data) | |
1382 | if b'total-queries-branches' in data: |
|
1395 | if b'total-queries-branches' in data: | |
1383 | fm.plain(b" queries-branches: %(total-queries-branches)9d\n" % data) |
|
1396 | fm.plain(b" queries-branches: %(total-queries-branches)9d\n" % data) |
@@ -38,6 +38,9 b' def findcommonincoming(repo, remote, hea' | |||||
38 |
|
38 | |||
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-roundtrips-heads'] = 1 | |||
|
42 | audit[b'total-roundtrips-branches'] = 0 | |||
|
43 | audit[b'total-roundtrips-between'] = 0 | |||
41 | audit[b'total-queries'] = 0 |
|
44 | audit[b'total-queries'] = 0 | |
42 | audit[b'total-queries-branches'] = 0 |
|
45 | audit[b'total-queries-branches'] = 0 | |
43 | audit[b'total-queries-between'] = 0 |
|
46 | audit[b'total-queries-between'] = 0 | |
@@ -74,6 +77,8 b' def findcommonincoming(repo, remote, hea' | |||||
74 | if audit is not None: |
|
77 | if audit is not None: | |
75 | audit[b'total-queries'] += len(unknown) |
|
78 | audit[b'total-queries'] += len(unknown) | |
76 | audit[b'total-queries-branches'] += len(unknown) |
|
79 | audit[b'total-queries-branches'] += len(unknown) | |
|
80 | audit[b'total-roundtrips'] += 1 | |||
|
81 | audit[b'total-roundtrips-branches'] += 1 | |||
77 | branches = e.callcommand(b'branches', {b'nodes': unknown}).result() |
|
82 | branches = e.callcommand(b'branches', {b'nodes': unknown}).result() | |
78 |
|
83 | |||
79 | unknown = collections.deque(branches) |
|
84 | unknown = collections.deque(branches) | |
@@ -124,6 +129,8 b' def findcommonincoming(repo, remote, hea' | |||||
124 | if audit is not None: |
|
129 | if audit is not None: | |
125 | audit[b'total-queries'] += len(subset) |
|
130 | audit[b'total-queries'] += len(subset) | |
126 | audit[b'total-queries-branches'] += len(subset) |
|
131 | audit[b'total-queries-branches'] += len(subset) | |
|
132 | audit[b'total-roundtrips'] += 1 | |||
|
133 | audit[b'total-roundtrips-branches'] += 1 | |||
127 | branches = e.callcommand( |
|
134 | branches = e.callcommand( | |
128 | b'branches', |
|
135 | b'branches', | |
129 | { |
|
136 | { | |
@@ -147,6 +154,8 b' def findcommonincoming(repo, remote, hea' | |||||
147 | if audit is not None: |
|
154 | if audit is not None: | |
148 | audit[b'total-queries'] += len(search) |
|
155 | audit[b'total-queries'] += len(search) | |
149 | audit[b'total-queries-between'] += len(search) |
|
156 | audit[b'total-queries-between'] += len(search) | |
|
157 | audit[b'total-roundtrips'] += 1 | |||
|
158 | audit[b'total-roundtrips-between'] += 1 | |||
150 | between = e.callcommand(b'between', {b'pairs': search}).result() |
|
159 | between = e.callcommand(b'between', {b'pairs': search}).result() | |
151 |
|
160 | |||
152 | for n, l in zip(search, between): |
|
161 | for n, l in zip(search, between): | |
@@ -192,7 +201,5 b' def findcommonincoming(repo, remote, hea' | |||||
192 |
|
201 | |||
193 | progress.complete() |
|
202 | progress.complete() | |
194 | repo.ui.debug(b"%d total queries\n" % reqcnt) |
|
203 | repo.ui.debug(b"%d total queries\n" % reqcnt) | |
195 | if audit is not None: |
|
|||
196 | audit[b'total-roundtrips'] = reqcnt |
|
|||
197 |
|
204 | |||
198 | return base, list(fetch), heads |
|
205 | return base, list(fetch), heads |
@@ -44,7 +44,7 b' Small superset:' | |||||
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 | elapsed time: * seconds (glob) | |
47 |
round-trips: |
|
47 | round-trips: 4 | |
48 | queries: 6 |
|
48 | queries: 6 | |
49 | queries-branches: 2 |
|
49 | queries-branches: 2 | |
50 | queries-between: 4 |
|
50 | queries-between: 4 | |
@@ -251,7 +251,7 b' Many new:' | |||||
251 | searching for changes |
|
251 | searching for changes | |
252 | unpruned common: bebd167eb94d |
|
252 | unpruned common: bebd167eb94d | |
253 | elapsed time: * seconds (glob) |
|
253 | elapsed time: * seconds (glob) | |
254 |
round-trips: |
|
254 | round-trips: 4 | |
255 | queries: 3 |
|
255 | queries: 3 | |
256 | queries-branches: 1 |
|
256 | queries-branches: 1 | |
257 | queries-between: 2 |
|
257 | queries-between: 2 | |
@@ -357,7 +357,7 b' Many new:' | |||||
357 | searching for changes |
|
357 | searching for changes | |
358 | unpruned common: 66f7d451a68b bebd167eb94d |
|
358 | unpruned common: 66f7d451a68b bebd167eb94d | |
359 | elapsed time: * seconds (glob) |
|
359 | elapsed time: * seconds (glob) | |
360 |
round-trips: |
|
360 | round-trips: 6 | |
361 | queries: 5 |
|
361 | queries: 5 | |
362 | queries-branches: 1 |
|
362 | queries-branches: 1 | |
363 | queries-between: 4 |
|
363 | queries-between: 4 | |
@@ -469,7 +469,7 b' Both sides many new with stub:' | |||||
469 | searching for changes |
|
469 | searching for changes | |
470 | unpruned common: 2dc09a01254d |
|
470 | unpruned common: 2dc09a01254d | |
471 | elapsed time: * seconds (glob) |
|
471 | elapsed time: * seconds (glob) | |
472 |
round-trips: |
|
472 | round-trips: 6 | |
473 | queries: 5 |
|
473 | queries: 5 | |
474 | queries-branches: 1 |
|
474 | queries-branches: 1 | |
475 | queries-between: 4 |
|
475 | queries-between: 4 | |
@@ -575,7 +575,7 b' Both sides many new with stub:' | |||||
575 | searching for changes |
|
575 | searching for changes | |
576 | unpruned common: 2dc09a01254d 66f7d451a68b |
|
576 | unpruned common: 2dc09a01254d 66f7d451a68b | |
577 | elapsed time: * seconds (glob) |
|
577 | elapsed time: * seconds (glob) | |
578 |
round-trips: |
|
578 | round-trips: 6 | |
579 | queries: 5 |
|
579 | queries: 5 | |
580 | queries-branches: 1 |
|
580 | queries-branches: 1 | |
581 | queries-between: 4 |
|
581 | queries-between: 4 | |
@@ -688,7 +688,7 b' Both many new:' | |||||
688 | searching for changes |
|
688 | searching for changes | |
689 | unpruned common: 66f7d451a68b |
|
689 | unpruned common: 66f7d451a68b | |
690 | elapsed time: * seconds (glob) |
|
690 | elapsed time: * seconds (glob) | |
691 |
round-trips: |
|
691 | round-trips: 6 | |
692 | queries: 5 |
|
692 | queries: 5 | |
693 | queries-branches: 1 |
|
693 | queries-branches: 1 | |
694 | queries-between: 4 |
|
694 | queries-between: 4 | |
@@ -794,7 +794,7 b' Both many new:' | |||||
794 | searching for changes |
|
794 | searching for changes | |
795 | unpruned common: 66f7d451a68b |
|
795 | unpruned common: 66f7d451a68b | |
796 | elapsed time: * seconds (glob) |
|
796 | elapsed time: * seconds (glob) | |
797 |
round-trips: |
|
797 | round-trips: 6 | |
798 | queries: 5 |
|
798 | queries: 5 | |
799 | queries-branches: 1 |
|
799 | queries-branches: 1 | |
800 | queries-between: 4 |
|
800 | queries-between: 4 | |
@@ -907,7 +907,7 b' Both many new skewed:' | |||||
907 | searching for changes |
|
907 | searching for changes | |
908 | unpruned common: 66f7d451a68b |
|
908 | unpruned common: 66f7d451a68b | |
909 | elapsed time: * seconds (glob) |
|
909 | elapsed time: * seconds (glob) | |
910 |
round-trips: |
|
910 | round-trips: 6 | |
911 | queries: 5 |
|
911 | queries: 5 | |
912 | queries-branches: 1 |
|
912 | queries-branches: 1 | |
913 | queries-between: 4 |
|
913 | queries-between: 4 | |
@@ -1013,7 +1013,7 b' Both many new skewed:' | |||||
1013 | searching for changes |
|
1013 | searching for changes | |
1014 | unpruned common: 66f7d451a68b |
|
1014 | unpruned common: 66f7d451a68b | |
1015 | elapsed time: * seconds (glob) |
|
1015 | elapsed time: * seconds (glob) | |
1016 |
round-trips: |
|
1016 | round-trips: 5 | |
1017 | queries: 4 |
|
1017 | queries: 4 | |
1018 | queries-branches: 1 |
|
1018 | queries-branches: 1 | |
1019 | queries-between: 3 |
|
1019 | queries-between: 3 | |
@@ -1126,7 +1126,7 b' Both many new on top of long history:' | |||||
1126 | searching for changes |
|
1126 | searching for changes | |
1127 | unpruned common: 7ead0cba2838 |
|
1127 | unpruned common: 7ead0cba2838 | |
1128 | elapsed time: * seconds (glob) |
|
1128 | elapsed time: * seconds (glob) | |
1129 |
round-trips: |
|
1129 | round-trips: 6 | |
1130 | queries: 5 |
|
1130 | queries: 5 | |
1131 | queries-branches: 1 |
|
1131 | queries-branches: 1 | |
1132 | queries-between: 4 |
|
1132 | queries-between: 4 | |
@@ -1238,7 +1238,7 b' Both many new on top of long history:' | |||||
1238 | searching for changes |
|
1238 | searching for changes | |
1239 | unpruned common: 7ead0cba2838 |
|
1239 | unpruned common: 7ead0cba2838 | |
1240 | elapsed time: * seconds (glob) |
|
1240 | elapsed time: * seconds (glob) | |
1241 |
round-trips: |
|
1241 | round-trips: 5 | |
1242 | queries: 4 |
|
1242 | queries: 4 | |
1243 | queries-branches: 1 |
|
1243 | queries-branches: 1 | |
1244 | queries-between: 3 |
|
1244 | queries-between: 3 |
General Comments 0
You need to be logged in to leave comments.
Login now