##// END OF EJS Templates
overlayworkingctx: inherit from committablectx instead of workingctx...
Phil Cohen -
r35324:8e1386b3 default
parent child Browse files
Show More
@@ -1976,9 +1976,9 b' class workingfilectx(committablefilectx)'
1976 def setflags(self, l, x):
1976 def setflags(self, l, x):
1977 self._repo.wvfs.setflags(self._path, l, x)
1977 self._repo.wvfs.setflags(self._path, l, x)
1978
1978
1979 class overlayworkingctx(workingctx):
1979 class overlayworkingctx(committablectx):
1980 """Wraps another mutable context with a write-back cache that can be flushed
1980 """Wraps another mutable context with a write-back cache that can be
1981 at a later time.
1981 converted into a commit context.
1982
1982
1983 self._cache[path] maps to a dict with keys: {
1983 self._cache[path] maps to a dict with keys: {
1984 'exists': bool?
1984 'exists': bool?
@@ -2161,7 +2161,7 b' class overlayworkingctx(workingctx):'
2161 return overlayworkingfilectx(self._repo, path, parent=self,
2161 return overlayworkingfilectx(self._repo, path, parent=self,
2162 filelog=filelog)
2162 filelog=filelog)
2163
2163
2164 class overlayworkingfilectx(workingfilectx):
2164 class overlayworkingfilectx(committablefilectx):
2165 """Wrap a ``workingfilectx`` but intercepts all writes into an in-memory
2165 """Wrap a ``workingfilectx`` but intercepts all writes into an in-memory
2166 cache, which can be flushed through later by calling ``flush()``."""
2166 cache, which can be flushed through later by calling ``flush()``."""
2167
2167
General Comments 0
You need to be logged in to leave comments. Login now