Patchwork [1,of,7] perf: document perfheads

login
register
mail settings
Submitter Boris Feld
Date Jan. 28, 2019, 8:10 p.m.
Message ID <f39f3732ef42fe901b41.1548706253@localhost.localdomain>
Download mbox | patch
Permalink /patch/38142/
State Accepted
Headers show

Comments

Boris Feld - Jan. 28, 2019, 8:10 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1548445951 18000
#      Fri Jan 25 14:52:31 2019 -0500
# Node ID f39f3732ef42fe901b418e23433475076b599757
# Parent  431cf2c8c83969a68d132d6ba92af1998e147927
# EXP-Topic perf-ext
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r f39f3732ef42
perf: document perfheads
Pulkit Goyal - Jan. 28, 2019, 10:03 p.m.
On Tue, Jan 29, 2019 at 1:45 AM Boris Feld <boris.feld@octobus.net> wrote:

> # HG changeset patch
> # User Boris Feld <boris.feld@octobus.net>
> # Date 1548445951 18000
> #      Fri Jan 25 14:52:31 2019 -0500
> # Node ID f39f3732ef42fe901b418e23433475076b599757
> # Parent  431cf2c8c83969a68d132d6ba92af1998e147927
> # EXP-Topic perf-ext
> # Available At https://bitbucket.org/octobus/mercurial-devel/
> #              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r
> f39f3732ef42
> perf: document perfheads
>

Queued 1-6, many thanks for continuous work on performance testing.

Patch

diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -535,6 +535,7 @@  def clearcaches(cl):
 
 @command(b'perfheads', formatteropts)
 def perfheads(ui, repo, **opts):
+    """benchmark the computation of a changelog heads"""
     opts = _byteskwargs(opts)
     timer, fm = gettimer(ui, opts)
     cl = repo.changelog
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
@@ -88,7 +88,7 @@  perfstatus
                  (no help text available)
    perffncachewrite
                  (no help text available)
-   perfheads     (no help text available)
+   perfheads     benchmark the computation of a changelog heads
    perfhelper-pathcopies
                  find statistic about potential parameters for the
                  'perftracecopies'