# HG changeset patch # User Sean Farley # Date 1376596803 18000 # Node ID d2743be1bb0645f45411cb7a91764a791e7ff4eb # Parent 151a992c387426154f2f2292f31e6eb7fa8650dc memctx: inherit from committablectx This patch marks the start of having memctx inherit from committablectx, thereby making it a full-fledged context that will eventually grow the ability to perform diffing and also merging. diff -r 151a992c3874 -r d2743be1bb06 mercurial/context.py --- a/mercurial/context.py Tue Apr 29 16:49:27 2014 -0500 +++ b/mercurial/context.py Thu Aug 15 15:00:03 2013 -0500 @@ -1531,7 +1531,7 @@ # invert comparison to reuse the same code path return fctx.cmp(self) -class memctx(object): +class memctx(committablectx): """Use memctx to perform in-memory commits via localrepo.commitctx(). Revision information is supplied at initialization time while