D1230: overlayworkingctx: make clean() public

phillco (Phil Cohen) phabricator at mercurial-scm.org
Thu Dec 7 14:49:05 EST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG307b1689e3f8: overlayworkingctx: make clean() public (authored by phillco, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1230?vs=4040&id=4173

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

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -1993,8 +1993,8 @@
     def __init__(self, repo, wrappedctx):
         super(overlayworkingctx, self).__init__(repo)
         self._repo = repo
+        self.clean()
         self._wrappedctx = wrappedctx
-        self._clean()
 
     def data(self, path):
         if self.isdirty(path):
@@ -2074,7 +2074,7 @@
     def isdirty(self, path):
         return path in self._cache
 
-    def _clean(self):
+    def clean(self):
         self._cache = {}
 
     def _markdirty(self, path, exists, data=None, date=None, flags=''):



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


More information about the Mercurial-devel mailing list