equal
deleted
inserted
replaced
282 # i18n: "clean" is a keyword |
282 # i18n: "clean" is a keyword |
283 getargs(x, 0, 0, _("clean takes no arguments")) |
283 getargs(x, 0, 0, _("clean takes no arguments")) |
284 s = set(mctx.status().clean) |
284 s = set(mctx.status().clean) |
285 return [f for f in mctx.subset if f in s] |
285 return [f for f in mctx.subset if f in s] |
286 |
286 |
|
287 @predicate('tracked()') |
|
288 def tracked(mctx, x): |
|
289 """File that is under Mercurial control.""" |
|
290 # i18n: "tracked" is a keyword |
|
291 getargs(x, 0, 0, _("tracked takes no arguments")) |
|
292 return [f for f in mctx.subset if f in mctx.ctx] |
|
293 |
287 @predicate('binary()', callexisting=True) |
294 @predicate('binary()', callexisting=True) |
288 def binary(mctx, x): |
295 def binary(mctx, x): |
289 """File that appears to be binary (contains NUL bytes). |
296 """File that appears to be binary (contains NUL bytes). |
290 """ |
297 """ |
291 # i18n: "binary" is a keyword |
298 # i18n: "binary" is a keyword |