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): |