perf: fix `perfhelper-pathcopies` report of #changesets
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 02 Oct 2019 18:39:20 -0400
changeset 43160 84a950007619
parent 43159 b02387005515
child 43161 9d57c2df7b5f
perf: fix `perfhelper-pathcopies` report of #changesets The previous computation `<base>::<target>` was wrong, what we actually need is `::<target> - ::<base>`. This is now fixed
contrib/perf.py
--- a/contrib/perf.py	Thu Oct 10 12:22:15 2019 +0200
+++ b/contrib/perf.py	Wed Oct 02 18:39:20 2019 -0400
@@ -2122,7 +2122,7 @@
                 data = {
                     b'source': base.hex(),
                     b'destination': parent.hex(),
-                    b'nbrevs': len(repo.revs('%d::%d', b, p)),
+                    b'nbrevs': len(repo.revs('only(%d, %d)', p, b)),
                     b'nbmissingfiles': len(missing),
                 }
                 if dostats: