[PATCH 29 of 41] basefilectx: move manifest from filectx

Sean Farley sean.michael.farley at gmail.com
Mon Aug 12 11:27:25 CDT 2013


# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1376279709 18000
#      Sun Aug 11 22:55:09 2013 -0500
# Node ID a53c4c04f9f2e3907e71ad192b84190f0c31f199
# Parent  eef0a657de2558d96ce814757166310692413274
basefilectx: move manifest from filectx

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -507,10 +507,12 @@
         return self._changectx.extra()
     def phase(self):
         return self._changectx.phase()
     def phasestr(self):
         return self._changectx.phasestr()
+    def manifest(self):
+        return self._changectx.manifest()
 
 class filectx(basefilectx):
     """A filecontext object makes access to data related to a particular
        filerevision convenient."""
     def __init__(self, repo, path, changeid=None, fileid=None,
@@ -563,12 +565,10 @@
         '''opens an arbitrary revision of the file without
         opening a new filelog'''
         return filectx(self._repo, self._path, fileid=fileid,
                        filelog=self._filelog)
 
-    def manifest(self):
-        return self._changectx.manifest()
     def changectx(self):
         return self._changectx
 
     def data(self):
         return self._filelog.read(self._filenode)


More information about the Mercurial-devel mailing list