Skip to content
Snippets Groups Projects
Commit e36569bd authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

perfphases: add a flag to also include file access time

The flag purges all phases data so we'll have to read the file from disk again.
parent 6f791ca7
No related branches found
No related tags found
No related merge requests found
......@@ -591,7 +591,9 @@
timer(d)
fm.end()
@command('perfphases', [], "")
@command('perfphases',
[('', 'full', False, 'include file reading time too'),
], "")
def perfphases(ui, repo, **opts):
"""benchmark phasesets computation"""
timer, fm = gettimer(ui, opts)
......@@ -595,5 +597,6 @@
def perfphases(ui, repo, **opts):
"""benchmark phasesets computation"""
timer, fm = gettimer(ui, opts)
phases = repo._phasecache
_phases = repo._phasecache
full = opts.get('full')
def d():
......@@ -599,4 +602,8 @@
def d():
phases = _phases
if full:
clearfilecache(repo, '_phasecache')
phases = repo._phasecache
phases.invalidate()
phases.loadphaserevs(repo)
timer(d)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment