D3643: localrepo: add docstring to _makedirstate to make it less likely to be removed

spectral (Kyle Lippincott) phabricator at mercurial-scm.org
Tue May 22 18:21:13 UTC 2018


spectral created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3643

AFFECTED FILES
  mercurial/localrepo.py

CHANGE DETAILS

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -781,6 +781,7 @@
         return self._makedirstate()
 
     def _makedirstate(self):
+        """Extension point for wrapping the dirstate per-repo."""
         sparsematchfn = lambda: sparse.matcher(self)
 
         return dirstate.dirstate(self.vfs, self.ui, self.root,



To: spectral, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list