Mercurial > hg
changeset 43161:9d57c2df7b5f
perf: fix `perfhelper-mergecopies` report of #changesets
Same as `perfhelper-pathcopies`. The previous computation `<base>::<target>` was
wrong, what we actually need is `::<target> - ::<base>`.
This is now fixed.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 10 Oct 2019 04:48:31 +0200 |
parents | 84a950007619 |
children | 3c6976b1f693 |
files | contrib/perf.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/perf.py Wed Oct 02 18:39:20 2019 -0400 +++ b/contrib/perf.py Thu Oct 10 04:48:31 2019 +0200 @@ -1941,10 +1941,10 @@ data = { b'base': b.hex(), b'p1.node': p1.hex(), - b'p1.nbrevs': len(repo.revs('%d::%d', b.rev(), p1.rev())), + b'p1.nbrevs': len(repo.revs('only(%d, %d)', p1.rev(), b.rev())), b'p1.nbmissingfiles': len(p1missing), b'p2.node': p2.hex(), - b'p2.nbrevs': len(repo.revs('%d::%d', b.rev(), p2.rev())), + b'p2.nbrevs': len(repo.revs('only(%d, %d)', p2.rev(), b.rev())), b'p2.nbmissingfiles': len(p2missing), } if dostats: