changeset 27151 | 7625f6387fc4 |
parent 26845 | 7a77ee434179 |
child 27152 | ac27b1b3be85 |
--- a/mercurial/help.py Sun Nov 29 06:51:23 2015 +0000 +++ b/mercurial/help.py Mon Nov 30 20:44:22 2015 +0000 @@ -27,11 +27,12 @@ '''return a text listing of the given extensions''' rst = [] if exts: - rst.append('\n%s\n\n' % header) for name, desc in sorted(exts.iteritems()): if not showdeprecated and any(w in desc for w in _exclkeywords): continue rst.append('%s:%s: %s\n' % (' ' * indent, name, desc)) + if rst: + rst.insert(0, '\n%s\n\n' % header) return rst def extshelp(ui):