hgext/lfs/__init__.py
changeset 38689 ff5b6fca1082
parent 37785 b4d85bc122bd
child 38800 7790cd70842a
child 40131 535fc8a22365
--- a/hgext/lfs/__init__.py	Tue Jul 10 23:49:48 2018 +0900
+++ b/hgext/lfs/__init__.py	Sat Jun 09 19:55:10 2018 +0900
@@ -362,8 +362,10 @@
     """File that uses LFS storage."""
     # i18n: "lfs" is a keyword
     fileset.getargs(x, 0, 0, _("lfs takes no arguments"))
-    return [f for f in mctx.subset
-            if wrapper.pointerfromctx(mctx.ctx, f, removed=True) is not None]
+    ctx = mctx.ctx
+    def lfsfilep(f):
+        return wrapper.pointerfromctx(ctx, f, removed=True) is not None
+    return mctx.predicate(lfsfilep, predrepr='<lfs>')
 
 @templatekeyword('lfs_files', requires={'ctx'})
 def lfsfiles(context, mapping):