changeset 35286:307b1689e3f8

overlayworkingctx: make clean() public It will be called directly by rebase after concluding a node. Differential Revision: https://phab.mercurial-scm.org/D1230
author Phil Cohen <phillco@fb.com>
date Fri, 01 Dec 2017 00:07:23 -0800
parents 3ceebf497057
children 3398603c5621
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Fri Dec 01 00:07:23 2017 -0800
+++ b/mercurial/context.py	Fri Dec 01 00:07:23 2017 -0800
@@ -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=''):