diff hgext/phabricator.py @ 40435:7e2c58b08e74 stable

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".
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 10 Nov 2018 22:25:12 -0500
parents b015f30a91fb
children d7d3164e6a31 536beb130f3c
line wrap: on
line diff
--- 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