From patchwork Fri Nov 23 14:08:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [02, of, 13] perf: update function name to match `perfbranchmapload` command From: Boris Feld X-Patchwork-Id: 36732 Message-Id: <9f29b499e0adb22a3fd2.1542982138@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Fri, 23 Nov 2018 15:08:58 +0100 # HG changeset patch # User Boris Feld # Date 1542932418 -3600 # Fri Nov 23 01:20:18 2018 +0100 # Node ID 9f29b499e0adb22a3fd23f8e88ea281d1073aa3f # Parent 7fd3c1f11ea10875fe81828c4298e1b2bd79c9fd # EXP-Topic perf-branchmap # Available At https://bitbucket.org/octobus/mercurial-devel/ # hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 9f29b499e0ad perf: update function name to match `perfbranchmapload` command Having function with the same name as the command is simpler. diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -2179,7 +2179,7 @@ def perfbranchmap(ui, repo, *filternames (b'f', b'filter', b'', b'Specify repoview filter'), (b'', b'list', False, b'List brachmap filter caches'), ] + formatteropts) -def perfbranchmapread(ui, repo, filter=b'', list=False, **opts): +def perfbranchmapload(ui, repo, filter=b'', list=False, **opts): """benchmark reading the branchmap""" opts = _byteskwargs(opts)