Comments
Patch
@@ -509,10 +509,12 @@
return self._changectx.phase()
def phasestr(self):
return self._changectx.phasestr()
def manifest(self):
return self._changectx.manifest()
+ def changectx(self):
+ return self._changectx
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,
@@ -565,13 +567,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 changectx(self):
- return self._changectx
-
def data(self):
return self._filelog.read(self._filenode)
def path(self):
return self._path
def size(self):