##// END OF EJS Templates
perf: use `setup` function in `perfdirstatewrite`...
marmoute -
r43400:c88075eb default
parent child Browse files
Show More
@@ -1192,11 +1192,13 b' def perfdirstatewrite(ui, repo, **opts):'
1192 1192 ds = repo.dirstate
1193 1193 b"a" in ds
1194 1194
1195 def setup():
1196 ds._dirty = True
1197
1195 1198 def d():
1196 ds._dirty = True
1197 1199 ds.write(repo.currenttransaction())
1198 1200
1199 timer(d)
1201 timer(d, setup=setup)
1200 1202 fm.end()
1201 1203
1202 1204
General Comments 0
You need to be logged in to leave comments. Login now