perf: add a docstring to `perfpathcopies`
authorBoris Feld <boris.feld@octobus.net>
Mon, 26 Nov 2018 00:13:50 +0100
changeset 40739 dc3ab5e5fe64
parent 40738 8947f49daaa8
child 40740 30d878cb102d
perf: add a docstring to `perfpathcopies` This will help people to find this command.
contrib/perf.py
tests/test-contrib-perf.t
--- 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