Patchwork [02,of,13] perf: update function name to match `perfbranchmapload` command

login
register
mail settings
Submitter Boris Feld
Date Nov. 23, 2018, 2:08 p.m.
Message ID <9f29b499e0adb22a3fd2.1542982138@localhost.localdomain>
Download mbox | patch
Permalink /patch/36732/
State Accepted
Headers show

Comments

Boris Feld - Nov. 23, 2018, 2:08 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# 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.

Patch

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)