hgext/lfs/wrapper.py
changeset 40386 4a81d82474e9
parent 40368 fad6068249d9
child 41051 84d61fdcefa5
--- a/hgext/lfs/wrapper.py	Sat Oct 20 20:25:56 2018 +0900
+++ b/hgext/lfs/wrapper.py	Sun Oct 21 22:26:00 2018 -0400
@@ -374,7 +374,12 @@
     stored for the path is an empty dict.
     """
     result = {}
+    m = ctx.repo().narrowmatch()
+
+    # TODO: consider manifest.fastread() instead
     for f in ctx.files():
+        if not m(f):
+            continue
         p = pointerfromctx(ctx, f, removed=removed)
         if p is not None:
             result[f] = p