mercurial/revset.py
changeset 28393 ac11ba7c2e56
parent 28272 760f9d04842a
child 28395 0383f7a5e86c
equal deleted inserted replaced
28392:b983a2f04987 28393:ac11ba7c2e56
  3626         assert l >= 0
  3626         assert l >= 0
  3627         lines.append((l, rs[p:q].rstrip()))
  3627         lines.append((l, rs[p:q].rstrip()))
  3628         p = q
  3628         p = q
  3629     return '\n'.join('  ' * l + s for l, s in lines)
  3629     return '\n'.join('  ' * l + s for l, s in lines)
  3630 
  3630 
       
  3631 def loadpredicate(ui, extname, registrarobj):
       
  3632     """Load revset predicates from specified registrarobj
       
  3633     """
       
  3634     for name, func in registrarobj._table.iteritems():
       
  3635         symbols[name] = func
       
  3636         if func._safe:
       
  3637             safesymbols.add(name)
       
  3638 
  3631 # tell hggettext to extract docstrings from these functions:
  3639 # tell hggettext to extract docstrings from these functions:
  3632 i18nfunctions = symbols.values()
  3640 i18nfunctions = symbols.values()