##// END OF EJS Templates
revset: remove useless extpredicate class (API)...
FUJIWARA Katsunori -
r28445:d749b183 default
parent child Browse files
Show More
@@ -484,28 +484,6 b' safesymbols = set()'
484
484
485 predicate = registrar.revsetpredicate()
485 predicate = registrar.revsetpredicate()
486
486
487 class extpredicate(registrar.delayregistrar):
488 """Decorator to register revset predicate in extensions
489
490 Usage::
491
492 revsetpredicate = revset.extpredicate()
493
494 @revsetpredicate('mypredicate(arg1, arg2[, arg3])')
495 def mypredicatefunc(repo, subset, x):
496 '''Explanation of this revset predicate ....
497 '''
498 pass
499
500 def uisetup(ui):
501 revsetpredicate.setup()
502
503 'revsetpredicate' instance above can be used to decorate multiple
504 functions, and 'setup()' on it registers all such functions at
505 once.
506 """
507 registrar = predicate
508
509 @predicate('_destupdate')
487 @predicate('_destupdate')
510 def _destupdate(repo, subset, x):
488 def _destupdate(repo, subset, x):
511 # experimental revset for update destination
489 # experimental revset for update destination
General Comments 0
You need to be logged in to leave comments. Login now