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

benchmark: introduce a quick version of debugupdatecache

We should probably do that upstream
parent 6ee6e95f
No related branches found
No related tags found
No related merge requests found
......@@ -496,5 +496,5 @@
raise
raise
def update_repo_cache(self):
def update_repo_cache(self, quick=False):
"""best effort update the repository caches"""
......@@ -500,6 +500,6 @@
"""best effort update the repository caches"""
if self.has_command('debugupdatecache'):
if not quick and self.has_command('debugupdatecache'):
self.hg('debugupdatecache')
else:
self.hg('branches')
self.hg('tags')
......@@ -502,7 +502,9 @@
self.hg('debugupdatecache')
else:
self.hg('branches')
self.hg('tags')
self.hg('manifest', '--rev', '.')
self.hg('status')
def has_command(self, cmd):
"""return true if the command exist at the current version"""
......
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