Patchwork [3,of,5,FOLLOW-UP] perf: rename `perfhelper-tracecopies` to `perfhelper-pathcopies`

login
register
mail settings
Submitter Boris Feld
Date Nov. 26, 2018, 6:33 p.m.
Message ID <9e936fdbd084acef9ca4.1543257232@localhost.localdomain>
Download mbox | patch
Permalink /patch/36788/
State Accepted
Headers show

Comments

Boris Feld - Nov. 26, 2018, 6:33 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1543187712 -3600
#      Mon Nov 26 00:15:12 2018 +0100
# Node ID 9e936fdbd084acef9ca4edf998024896a30a0937
# Parent  47117f84f39cb5bc12212ba9c31212c9236feb85
# EXP-Topic follow-up-yuya
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 9e936fdbd084
perf: rename `perfhelper-tracecopies` to `perfhelper-pathcopies`

The command it supports is called `perfpathcopies`. It seems better to align the
names.

Patch

diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -1160,11 +1160,11 @@  def perftemplating(ui, repo, testedtempl
     timer(format)
     fm.end()
 
-@command(b'perfhelper-tracecopies', formatteropts +
+@command(b'perfhelper-pathcopies', formatteropts +
          [
           (b'r', b'revs', [], b'restrict search to these revisions'),
          ])
-def perfhelpertracecopies(ui, repo, revs=[], **opts):
+def perfhelperpathcopies(ui, repo, revs=[], **opts):
     """find statistic about potential parameters for the `perftracecopies`
 
     This command find source-destination pair relevant for copytracing testing.
diff --git a/tests/test-contrib-perf.t b/tests/test-contrib-perf.t
--- a/tests/test-contrib-perf.t
+++ b/tests/test-contrib-perf.t
@@ -83,7 +83,7 @@  perfstatus
    perffncachewrite
                  (no help text available)
    perfheads     (no help text available)
-   perfhelper-tracecopies
+   perfhelper-pathcopies
                  find statistic about potential parameters for the
                  'perftracecopies'
    perfindex     (no help text available)