--- a/mercurial/revset.py Tue Mar 08 23:04:53 2016 +0900
+++ b/mercurial/revset.py Tue Mar 08 23:04:53 2016 +0900
@@ -3628,5 +3628,13 @@
p = q
return '\n'.join(' ' * l + s for l, s in lines)
+def loadpredicate(ui, extname, registrarobj):
+ """Load revset predicates from specified registrarobj
+ """
+ for name, func in registrarobj._table.iteritems():
+ symbols[name] = func
+ if func._safe:
+ safesymbols.add(name)
+
# tell hggettext to extract docstrings from these functions:
i18nfunctions = symbols.values()