Patchwork [17,of,36] context: move manifest from changectx

login
register
mail settings
Submitter Sean Farley
Date Aug. 7, 2013, 6:13 p.m.
Message ID <df3021f946dfdaf67f8e.1375899197@laptop.local>
Download mbox | patch
Permalink /patch/2033/
State Superseded
Commit 0ef1324d36102ecc93d0cf173f2a67d289de3358
Delegated to: Augie Fackler
Headers show

Comments

Sean Farley - Aug. 7, 2013, 6:13 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1375741369 18000
#      Mon Aug 05 17:22:49 2013 -0500
# Node ID df3021f946dfdaf67f8e630a27167b4bbbbfcd7f
# Parent  48ba4ee3b3fb83edd87abbbcd7c1db403c04d0b5
context: move manifest from changectx

Patch

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]