##// END OF EJS Templates
locking: grab the wlock before touching the dirstate in `perfdirstatewrite`...
marmoute -
r50903:e859f440 default
parent child Browse files
Show More
@@ -235,6 +235,7 b' revlogopts = getattr('
235
235
236 cmdtable = {}
236 cmdtable = {}
237
237
238
238 # for "historical portability":
239 # for "historical portability":
239 # define parsealiases locally, because cmdutil.parsealiases has been
240 # define parsealiases locally, because cmdutil.parsealiases has been
240 # available since 1.5 (or 6252852b4332)
241 # available since 1.5 (or 6252852b4332)
@@ -573,7 +574,6 b' def _timer('
573
574
574
575
575 def formatone(fm, timings, title=None, result=None, displayall=False):
576 def formatone(fm, timings, title=None, result=None, displayall=False):
576
577 count = len(timings)
577 count = len(timings)
578
578
579 fm.startitem()
579 fm.startitem()
@@ -1474,7 +1474,8 b' def perfdirstatewrite(ui, repo, **opts):'
1474 def d():
1474 def d():
1475 ds.write(repo.currenttransaction())
1475 ds.write(repo.currenttransaction())
1476
1476
1477 timer(d, setup=setup)
1477 with repo.wlock():
1478 timer(d, setup=setup)
1478 fm.end()
1479 fm.end()
1479
1480
1480
1481
General Comments 0
You need to be logged in to leave comments. Login now