Comments
Patch
@@ -1186,11 +1186,17 @@
self._repo.dirstate.add(dest)
self._repo.dirstate.copy(source, dest)
finally:
wlock.release()
-class workingfilectx(basefilectx):
+class commitablefilectx(basefilectx):
+ """A commitablefilectx provides common functionality for a file context that
+ wants the ability to commit, e.g. workingfilectx or memfilectx."""
+ def __init__(self, repo, path, filelog=None, ctx=None):
+ pass
+
+class workingfilectx(commitablefilectx):
"""A workingfilectx object makes access to data related to a particular
file in the working directory convenient."""
def __init__(self, repo, path, filelog=None, workingctx=None):
self._repo = repo
self._path = path