perf: fix the time measurement for pathcopies relative to p2
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 27 Dec 2019 13:42:52 -0500
changeset 43974 a2ad5aeedfdf
parent 43973 ca5bd34c597b
child 43975 2bbb2f556ecf
perf: fix the time measurement for pathcopies relative to p2 PyCharm flagged this as unused. But it seems more likely that it was intended to reset the time for the p2 path. Differential Revision: https://phab.mercurial-scm.org/D7742
contrib/perf.py
--- a/contrib/perf.py	Fri Dec 27 13:29:45 2019 -0500
+++ b/contrib/perf.py	Fri Dec 27 13:42:52 2019 -0500
@@ -2048,8 +2048,8 @@
                 data['p1.time'] = end - begin
                 begin = util.timer()
                 p2renames = copies.pathcopies(b, p2)
+                end = util.timer()
                 data['p2.time'] = end - begin
-                end = util.timer()
                 data['p1.renamedfiles'] = len(p1renames)
                 data['p2.renamedfiles'] = len(p2renames)