phabricator: ensure the command summaries are available in extension help stable
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 10 Nov 2018 22:25:12 -0500
branchstable
changeset 40546 7e2c58b08e74
parent 40545 6107d4549fcc
child 40615 7589f2c9c3c7
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".
hgext/phabricator.py
--- a/hgext/phabricator.py	Fri Nov 09 23:49:39 2018 +0000
+++ b/hgext/phabricator.py	Sat Nov 10 22:25:12 2018 -0500
@@ -142,6 +142,7 @@
                         return fn(*args, **kwargs)
             return fn(*args, **kwargs)
         inner.__name__ = fn.__name__
+        inner.__doc__ = fn.__doc__
         return command(name, fullflags, spec)(inner)
     return decorate