Patchwork [08,of,14,RFC] memctx: inherit from workingctx

login
register
mail settings
Submitter Sean Farley
Date July 9, 2013, 9:54 p.m.
Message ID <6165df997ead55b015d2.1373406879@laptop.local>
Download mbox | patch
Permalink /patch/1817/
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 1373323949 18000
#      Mon Jul 08 17:52:29 2013 -0500
# Node ID 6165df997ead55b015d2ff132c46f8fa247d9dfc
# Parent  d1a3597ca37413bdf6060076f5a760822ce67036
memctx: inherit from workingctx

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -1233,11 +1233,11 @@ 
         """
         # fctx should be a filectx (not a workingfilectx)
         # invert comparison to reuse the same code path
         return fctx.cmp(self)
 
-class memctx(object):
+class memctx(workingctx):
     """Use memctx to perform in-memory commits via localrepo.commitctx().
 
     Revision information is supplied at initialization time while
     related files data and is made available through a callback
     mechanism.  'repo' is the current localrepo, 'parents' is a