Patchwork D1230: overlayworkingctx: make clean() public

login
register
mail settings
Submitter phabricator
Date Nov. 16, 2017, 6:01 a.m.
Message ID <7dbf75541372f7f8ae5dcdefb9720d1f@localhost.localdomain>
Download mbox | patch
Permalink /patch/25599/
State Not Applicable
Headers show

Comments

phabricator - Nov. 16, 2017, 6:01 a.m.
phillco updated this revision to Diff 3557.

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

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
@@ -1976,8 +1976,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):
@@ -2057,7 +2057,7 @@ 
     def isdirty(self, path):
         return path in self._cache
 
-    def _clean(self):
+    def clean(self):
         self._cache = {}
         self._writeorder = []