comparison mercurial/debugcommands.py @ 49390:362c0026a977 stable

debug-discovery: also gather details on tree-discovery queries type This is useful to understand the algorithm.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 26 Jul 2022 10:04:06 +0200
parents a1bb21542ab0
children 236702592ff0
comparison
equal deleted inserted replaced
49389:a1bb21542ab0 49390:362c0026a977
1377 fm.data(**pycompat.strkwargs(data)) 1377 fm.data(**pycompat.strkwargs(data))
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 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)
1385 fm.plain(b" also remote heads: %(nb-common-heads-remote)9d\n" % data) 1389 fm.plain(b" also remote heads: %(nb-common-heads-remote)9d\n" % data)
1386 fm.plain(b" both: %(nb-common-heads-both)9d\n" % data) 1390 fm.plain(b" both: %(nb-common-heads-both)9d\n" % data)