comparison contrib/perf.py @ 40699:94d76ddac40a

perf: update function name to match `perfbranchmapload` command Having function with the same name as the command is simpler.
author Boris Feld <boris.feld@octobus.net>
date Fri, 23 Nov 2018 01:20:18 +0100
parents 3c98c339c6ea
children 30f443d34a7d
comparison
equal deleted inserted replaced
40698:3c98c339c6ea 40699:94d76ddac40a
2225 2225
2226 @command(b'perfbranchmapload', [ 2226 @command(b'perfbranchmapload', [
2227 (b'f', b'filter', b'', b'Specify repoview filter'), 2227 (b'f', b'filter', b'', b'Specify repoview filter'),
2228 (b'', b'list', False, b'List brachmap filter caches'), 2228 (b'', b'list', False, b'List brachmap filter caches'),
2229 ] + formatteropts) 2229 ] + formatteropts)
2230 def perfbranchmapread(ui, repo, filter=b'', list=False, **opts): 2230 def perfbranchmapload(ui, repo, filter=b'', list=False, **opts):
2231 """benchmark reading the branchmap""" 2231 """benchmark reading the branchmap"""
2232 opts = _byteskwargs(opts) 2232 opts = _byteskwargs(opts)
2233 2233
2234 if list: 2234 if list:
2235 for name, kind, st in repo.cachevfs.readdir(stat=True): 2235 for name, kind, st in repo.cachevfs.readdir(stat=True):