D1216: overlayworkingctx: remove flushall()

phillco (Phil Cohen) phabricator at mercurial-scm.org
Thu Nov 16 01:01:23 EST 2017


phillco updated this revision to Diff 3556.

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1216?vs=3065&id=3556

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

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
@@ -1633,9 +1633,6 @@
                               listsubrepos=listsubrepos, badfn=badfn,
                               icasefs=icasefs)
 
-    def flushall(self):
-        pass # For overlayworkingfilectx compatibility.
-
     def _filtersuspectsymlink(self, files):
         if not files or self._repo.dirstate._checklink:
             return files
@@ -2057,25 +2054,6 @@
                                              self._path)
         return self._wrappedctx[path].size()
 
-    def flushall(self):
-        for path in self._writeorder:
-            entry = self._cache[path]
-            if entry['exists']:
-                self._wrappedctx[path].clearunknown()
-                if entry['data'] is not None:
-                    if entry['flags'] is None:
-                        raise error.ProgrammingError('data set but not flags')
-                    self._wrappedctx[path].write(
-                        entry['data'],
-                        entry['flags'])
-                else:
-                    self._wrappedctx[path].setflags(
-                        'l' in entry['flags'],
-                        'x' in entry['flags'])
-            else:
-                self._wrappedctx[path].remove(path)
-        self._clean()
-
     def isdirty(self, path):
         return path in self._cache
 



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


More information about the Mercurial-devel mailing list