branch | stable |
changeset 22322 | e284de138f00 |
parent 21796 | 8225bb1f0ad3 |
child 22367 | c5df4af17110 |
--- a/mercurial/help.py Sun Aug 31 19:43:03 2014 +0900 +++ b/mercurial/help.py Sat Aug 30 20:06:24 2014 +0200 @@ -86,9 +86,10 @@ 'extensioncommands': [], } for names, header, doc in helptable: + # Old extensions may use a str as doc. if (sum(map(lowercontains, names)) or lowercontains(header) - or lowercontains(doc())): + or (callable(doc) and lowercontains(doc()))): results['topics'].append((names[0], header)) import commands # avoid cycle for cmd, entry in commands.table.iteritems():