From patchwork Wed Aug 7 23:51:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [17,of,35,V2] context: move manifest from changectx From: Sean Farley X-Patchwork-Id: 2070 Message-Id: To: mercurial-devel@selenic.com Date: Wed, 07 Aug 2013 18:51:31 -0500 # HG changeset patch # User Sean Farley # Date 1375741369 18000 # Mon Aug 05 17:22:49 2013 -0500 # Node ID c554222f8f11df8a7442c3925bf27ee45e8a06ea # Parent 0a7579a062820089e64a2e16f2a2ca904a025f9a context: move manifest from changectx diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -71,10 +71,12 @@ return self._rev def node(self): return self._node def hex(self): return hex(self.node()) + def manifest(self): + return self._manifest class changectx(context): """A changecontext object makes access to data related to a particular changeset convenient. It represents a read-only context already presnt in the repo.""" @@ -207,12 +209,10 @@ p = p[:-1] return [changectx(self._repo, x) for x in p] def changeset(self): return self._changeset - def manifest(self): - return self._manifest def manifestnode(self): return self._changeset[0] def user(self): return self._changeset[1]