mercurial/fileset.py
changeset 28447 4eb5496c2bd4
parent 28056 4f8ced23345e
child 28448 7108834c76a2
equal deleted inserted replaced
28446:08bd09921102 28447:4eb5496c2bd4
   558     return getset(matchctx(ctx, subset, status), tree)
   558     return getset(matchctx(ctx, subset, status), tree)
   559 
   559 
   560 def prettyformat(tree):
   560 def prettyformat(tree):
   561     return parser.prettyformat(tree, ('string', 'symbol'))
   561     return parser.prettyformat(tree, ('string', 'symbol'))
   562 
   562 
       
   563 def loadpredicate(ui, extname, registrarobj):
       
   564     """Load fileset predicates from specified registrarobj
       
   565     """
       
   566     for name, func in registrarobj._table.iteritems():
       
   567         symbols[name] = func
       
   568         if func._callstatus:
       
   569             _statuscallers.add(name)
       
   570         if func._callexisting:
       
   571             _existingcallers.add(name)
       
   572 
   563 # tell hggettext to extract docstrings from these functions:
   573 # tell hggettext to extract docstrings from these functions:
   564 i18nfunctions = symbols.values()
   574 i18nfunctions = symbols.values()