diff -r b7e5c53a779e -r 1cba497491be mercurial/localrepo.py --- a/mercurial/localrepo.py Tue May 22 00:25:18 2018 +0530 +++ b/mercurial/localrepo.py Wed May 16 14:59:32 2018 -0700 @@ -778,6 +778,9 @@ @repofilecache('dirstate') def dirstate(self): + return self._makedirstate() + + def _makedirstate(self): sparsematchfn = lambda: sparse.matcher(self) return dirstate.dirstate(self.vfs, self.ui, self.root,