mercurial/localrepo.py
changeset 33373 fb320398a21c
parent 33336 4672db164c98
child 33382 b107a7660f4e
--- a/mercurial/localrepo.py	Sat Jul 08 15:42:11 2017 -0700
+++ b/mercurial/localrepo.py	Sat Jul 08 16:18:04 2017 -0700
@@ -53,6 +53,7 @@
     revset,
     revsetlang,
     scmutil,
+    sparse,
     store,
     subrepo,
     tags as tagsmod,
@@ -570,8 +571,10 @@
 
     @repofilecache('dirstate')
     def dirstate(self):
+        sparsematchfn = lambda: sparse.matcher(self)
+
         return dirstate.dirstate(self.vfs, self.ui, self.root,
-                                 self._dirstatevalidate)
+                                 self._dirstatevalidate, sparsematchfn)
 
     def _dirstatevalidate(self, node):
         try: