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

Matt Harbison mharbison72 at gmail.com
Sun Nov 11 03:30:25 UTC 2018


# HG changeset patch
# User Matt Harbison <matt_harbison at 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".

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
 


More information about the Mercurial-devel mailing list