# HG changeset patch # User Pierre-Yves David # Date 2019-10-10 02:48:31 # Node ID 9d57c2df7b5f6a37234877863256bc4b295fbdb0 # Parent 84a95000761997f1e90ff2e7325ebe70636bd119 perf: fix `perfhelper-mergecopies` report of #changesets Same as `perfhelper-pathcopies`. The previous computation `::` was wrong, what we actually need is `:: - ::`. This is now fixed. diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -1941,10 +1941,10 @@ def perfhelpermergecopies(ui, repo, revs 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: