changeset 40773:dc3ab5e5fe64

perf: add a docstring to `perfpathcopies` This will help people to find this command.
author Boris Feld <boris.feld@octobus.net>
date Mon, 26 Nov 2018 00:13:50 +0100
parents 8947f49daaa8
children 30d878cb102d
files contrib/perf.py tests/test-contrib-perf.t
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/perf.py	Mon Nov 26 00:08:11 2018 +0100
+++ b/contrib/perf.py	Mon Nov 26 00:13:50 2018 +0100
@@ -836,6 +836,7 @@
 
 @command(b'perfpathcopies', [], b"REV REV")
 def perfpathcopies(ui, repo, rev1, rev2, **opts):
+    """benchmark the copy tracing logic"""
     opts = _byteskwargs(opts)
     timer, fm = gettimer(ui, opts)
     ctx1 = scmutil.revsingle(repo, rev1, rev1)
--- a/tests/test-contrib-perf.t	Mon Nov 26 00:08:11 2018 +0100
+++ b/tests/test-contrib-perf.t	Mon Nov 26 00:13:50 2018 +0100
@@ -104,7 +104,7 @@
                  (no help text available)
    perfparents   (no help text available)
    perfpathcopies
-                 (no help text available)
+                 benchmark the copy tracing logic
    perfphases    benchmark phasesets computation
    perfphasesremote
                  benchmark time needed to analyse phases of the remote server