From patchwork Wed Aug 7 18:13:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [17,of,36] context: move manifest from changectx From: Sean Farley X-Patchwork-Id: 2033 Message-Id: To: mercurial-devel@selenic.com Date: Wed, 07 Aug 2013 13:13:17 -0500 # HG changeset patch # User Sean Farley # Date 1375741369 18000 # Mon Aug 05 17:22:49 2013 -0500 # Node ID df3021f946dfdaf67f8e630a27167b4bbbbfcd7f # Parent 48ba4ee3b3fb83edd87abbbcd7c1db403c04d0b5 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.""" @@ -201,12 +203,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]