[PATCH 08 of 14 RFC] memctx: inherit from workingctx
Sean Farley
sean.michael.farley at gmail.com
Tue Jul 9 16:54:39 CDT 2013
# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1373323949 18000
# Mon Jul 08 17:52:29 2013 -0500
# Node ID 6165df997ead55b015d2ff132c46f8fa247d9dfc
# Parent d1a3597ca37413bdf6060076f5a760822ce67036
memctx: inherit from workingctx
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
More information about the Mercurial-devel
mailing list