[PATCH 17 of 36] context: move manifest from changectx

Sean Farley sean.michael.farley at gmail.com
Wed Aug 7 13:13:17 CDT 2013


# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# 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]


More information about the Mercurial-devel mailing list