Patchwork [14,of,14,RFC] memfilectx: inherit from workingfilectx

login
register
mail settings
Submitter Sean Farley
Date July 9, 2013, 9:54 p.m.
Message ID <bdedcc078bb92a17c2ba.1373406885@laptop.local>
Download mbox | patch
Permalink /patch/1823/
State Changes Requested
Headers show

Comments

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

Patch

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):