Submitter | Yuya Nishihara |
---|---|
Date | March 28, 2018, 1:18 p.m. |
Message ID | <ae01ece672206c33d821.1522243090@mimosa> |
Download | mbox | patch |
Permalink | /patch/29920/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -551,7 +551,10 @@ class cmdalias(object): # drop prefix in old-style help lines so hg shows the alias self.help = self.help[4 + len(cmd):] - self.__doc__ = cfg.get('doc', fn.__doc__) + doc = cfg.get('doc', pycompat.getdoc(fn)) + if doc is not None: + doc = pycompat.sysstr(doc) + self.__doc__ = doc @property def args(self):