changeset 37075 | 46859b437697 |
parent 37073 | 44757e6dad93 |
child 37102 | 638a241202a3 |
--- a/mercurial/formatter.py Thu Mar 15 21:22:52 2018 +0900 +++ b/mercurial/formatter.py Thu Mar 15 21:38:57 2018 +0900 @@ -504,6 +504,10 @@ 'ui': ui, } + def availablekeys(self, context, mapping): + return {k for k, g in self._gettermap.iteritems() + if g(self, context, mapping, k) is not None} + def knownkeys(self): return self._knownkeys