[PATCH 14 of 14 RFC] memfilectx: inherit from workingfilectx

Sean Farley sean.michael.farley at gmail.com
Tue Jul 9 16:54:45 CDT 2013


# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1373323995 18000
#      Mon Jul 08 17:53:15 2013 -0500
# Node ID bdedcc078bb92a17c2ba61930d32f21755a5ebbe
# Parent  3f63ecaf71d993eb929cb12cafc96fc01e7c216d
memfilectx: inherit from workingfilectx

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -1340,11 +1340,11 @@
 
     def commit(self):
         """commit context to the repo"""
         return self._repo.commitctx(self)
 
-class memfilectx(object):
+class memfilectx(workingfilectx):
     """memfilectx represents an in-memory file to commit.
 
     See memctx for more details.
     """
     def __init__(self, repo, path, data, islink=False, isexec=False, copied=None):


More information about the Mercurial-devel mailing list