mercurial/fileset.py
changeset 32134 4240be02df79
parent 31697 992882cef7e1
child 32291 bd872f64a8ba
equal deleted inserted replaced
32133:435a3842ca3a 32134:4240be02df79
   254 def binary(mctx, x):
   254 def binary(mctx, x):
   255     """File that appears to be binary (contains NUL bytes).
   255     """File that appears to be binary (contains NUL bytes).
   256     """
   256     """
   257     # i18n: "binary" is a keyword
   257     # i18n: "binary" is a keyword
   258     getargs(x, 0, 0, _("binary takes no arguments"))
   258     getargs(x, 0, 0, _("binary takes no arguments"))
   259     return [f for f in mctx.existing() if util.binary(mctx.ctx[f].data())]
   259     return [f for f in mctx.existing() if mctx.ctx[f].isbinary()]
   260 
   260 
   261 @predicate('exec()', callexisting=True)
   261 @predicate('exec()', callexisting=True)
   262 def exec_(mctx, x):
   262 def exec_(mctx, x):
   263     """File that is marked as executable.
   263     """File that is marked as executable.
   264     """
   264     """