D1230: overlayworkingctx: make clean() public
phillco (Phil Cohen)
phabricator at mercurial-scm.org
Fri Dec 1 08:09:40 UTC 2017
phillco updated this revision to Diff 4040.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1230?vs=3562&id=4040
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
@@ -2024,8 +2024,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):
@@ -2105,7 +2105,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