equal
deleted
inserted
replaced
404 @command('perffncachewrite', formatteropts) |
404 @command('perffncachewrite', formatteropts) |
405 def perffncachewrite(ui, repo, **opts): |
405 def perffncachewrite(ui, repo, **opts): |
406 timer, fm = gettimer(ui, opts) |
406 timer, fm = gettimer(ui, opts) |
407 s = repo.store |
407 s = repo.store |
408 s.fncache._load() |
408 s.fncache._load() |
|
409 lock = repo.lock() |
|
410 tr = repo.transaction('perffncachewrite') |
409 def d(): |
411 def d(): |
410 s.fncache._dirty = True |
412 s.fncache._dirty = True |
411 s.fncache.write() |
413 s.fncache.write(tr) |
412 timer(d) |
414 timer(d) |
|
415 lock.release() |
413 fm.end() |
416 fm.end() |
414 |
417 |
415 @command('perffncacheencode', formatteropts) |
418 @command('perffncacheencode', formatteropts) |
416 def perffncacheencode(ui, repo, **opts): |
419 def perffncacheencode(ui, repo, **opts): |
417 timer, fm = gettimer(ui, opts) |
420 timer, fm = gettimer(ui, opts) |