[PATCH 17 of 35 V2] context: move manifest from changectx

Sean Farley sean.michael.farley at gmail.com
Wed Aug 7 18:51:31 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 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]


More information about the Mercurial-devel mailing list