Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 38165:2b8cb0ab231c
localrepo: add docstring to _makedirstate to make it less likely to be removed
Differential Revision: https://phab.mercurial-scm.org/D3643
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Tue, 22 May 2018 11:20:55 -0700 |
parents | 1cba497491be |
children | ead71b15efd5 |
comparison
equal
deleted
inserted
replaced
38164:46c2b19a1263 | 38165:2b8cb0ab231c |
---|---|
779 @repofilecache('dirstate') | 779 @repofilecache('dirstate') |
780 def dirstate(self): | 780 def dirstate(self): |
781 return self._makedirstate() | 781 return self._makedirstate() |
782 | 782 |
783 def _makedirstate(self): | 783 def _makedirstate(self): |
784 """Extension point for wrapping the dirstate per-repo.""" | |
784 sparsematchfn = lambda: sparse.matcher(self) | 785 sparsematchfn = lambda: sparse.matcher(self) |
785 | 786 |
786 return dirstate.dirstate(self.vfs, self.ui, self.root, | 787 return dirstate.dirstate(self.vfs, self.ui, self.root, |
787 self._dirstatevalidate, sparsematchfn) | 788 self._dirstatevalidate, sparsematchfn) |
788 | 789 |