Patchwork [STABLE] phabricator: ensure the command summaries are available in extension help

login
register
mail settings
Submitter Matt Harbison
Date Nov. 11, 2018, 3:30 a.m.
Message ID <7e2c58b08e7451454110.1541907025@Envy>
Download mbox | patch
Permalink /patch/36507/
State Accepted
Headers show

Comments

Matt Harbison - Nov. 11, 2018, 3:30 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1541906712 18000
#      Sat Nov 10 22:25:12 2018 -0500
# Branch stable
# Node ID 7e2c58b08e74514541101f5049eea8a1ff4ba4a7
# Parent  6107d4549fcc762ac8eebd61a839518ef22ec115
phabricator: ensure the command summaries are available in extension help

Previously, `hg help phabricator` listed the 3 supported commands at the bottom
of the extension help, but said "no help text available".
Yuya Nishihara - Nov. 11, 2018, 1:10 p.m.
On Sat, 10 Nov 2018 22:30:25 -0500, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison@yahoo.com>
> # Date 1541906712 18000
> #      Sat Nov 10 22:25:12 2018 -0500
> # Branch stable
> # Node ID 7e2c58b08e74514541101f5049eea8a1ff4ba4a7
> # Parent  6107d4549fcc762ac8eebd61a839518ef22ec115
> phabricator: ensure the command summaries are available in extension help

Good catch. Queued for stable, thanks.

Patch

diff --git a/hgext/phabricator.py b/hgext/phabricator.py
--- a/hgext/phabricator.py
+++ b/hgext/phabricator.py
@@ -142,6 +142,7 @@  def vcrcommand(name, flags, spec):
                         return fn(*args, **kwargs)
             return fn(*args, **kwargs)
         inner.__name__ = fn.__name__
+        inner.__doc__ = fn.__doc__
         return command(name, fullflags, spec)(inner)
     return decorate