Patchwork D1230: overlayworkingctx: make clean() public

login
register
mail settings
Submitter phabricator
Date Dec. 7, 2017, 7:49 p.m.
Message ID <f682edbb0bb1dda062be38d0d0bc93a9@localhost.localdomain>
Download mbox | patch
Permalink /patch/26007/
State Not Applicable
Headers show

Comments

phabricator - Dec. 7, 2017, 7:49 p.m.
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




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

Patch

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=''):