equal
deleted
inserted
replaced
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 """ |