Patchwork [02,of,10] perf: clarify some of the custom behavior of `perfrevlogwrite`

login
register
mail settings
Submitter Pierre-Yves David
Date June 13, 2019, 1:22 p.m.
Message ID <cbcf0facaa1f7db528e6.1560432177@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/40473/
State Accepted
Headers show

Comments

Pierre-Yves David - June 13, 2019, 1:22 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1560357024 -3600
#      Wed Jun 12 17:30:24 2019 +0100
# Node ID cbcf0facaa1f7db528e648f6aee1b8df5b7fe6c4
# Parent  4aed1b2d0ba4e063f5647eabad47a084cea628bc
# EXP-Topic delta-extra
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r cbcf0facaa1f
perf: clarify some of the custom behavior of `perfrevlogwrite`

This reduce the chance of developer being surprised by special cases.

Patch

diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -2093,6 +2093,16 @@  def perfrevlogwrite(ui, repo, file_=None
                   (use a delta from the first parent otherwise)
     * `parent-smallest`: add from the smallest delta (either p1 or p2)
     * `storage`: add from the existing precomputed deltas
+
+    Note: This performance command measure performance in a custom way. As a
+    result some of the global configuration of the 'perf' command does not
+    apply it it:
+
+    * ``pre-run``: disabled
+
+    * ``profile-benchmark``: disabled
+
+    * ``run-limits``: disabled use --count instead
     """
     opts = _byteskwargs(opts)