--- a/hgext/largefiles/lfutil.py Sat Jul 08 15:42:11 2017 -0700
+++ b/hgext/largefiles/lfutil.py Sat Jul 08 16:18:04 2017 -0700
@@ -26,6 +26,7 @@
node,
pycompat,
scmutil,
+ sparse,
util,
vfs as vfsmod,
)
@@ -147,7 +148,8 @@
lfstoredir = longname
opener = vfsmod.vfs(vfs.join(lfstoredir))
lfdirstate = largefilesdirstate(opener, ui, repo.root,
- repo.dirstate._validate)
+ repo.dirstate._validate,
+ lambda: sparse.matcher(repo))
# If the largefiles dirstate does not exist, populate and create
# it. This ensures that we create it on the first meaningful