##// END OF EJS Templates
perf: use `setup` function in `perfdirstate`...
marmoute -
r43392:436a6a31 default
parent child Browse files
Show More
@@ -1112,11 +1112,13 b' def perfdirstate(ui, repo, **opts):'
1112 timer, fm = gettimer(ui, opts)
1112 timer, fm = gettimer(ui, opts)
1113 b"a" in repo.dirstate
1113 b"a" in repo.dirstate
1114
1114
1115 def setup():
1116 repo.dirstate.invalidate()
1117
1115 def d():
1118 def d():
1116 repo.dirstate.invalidate()
1117 b"a" in repo.dirstate
1119 b"a" in repo.dirstate
1118
1120
1119 timer(d)
1121 timer(d, setup=setup)
1120 fm.end()
1122 fm.end()
1121
1123
1122
1124
General Comments 0
You need to be logged in to leave comments. Login now