mercurial/context.py
changeset 19596 9bc3d0dea371
parent 19595 bb6fd06975a6
child 19597 837bc86370f0
equal deleted inserted replaced
19595:bb6fd06975a6 19596:9bc3d0dea371
   499         return self._changectx.date()
   499         return self._changectx.date()
   500     def files(self):
   500     def files(self):
   501         return self._changectx.files()
   501         return self._changectx.files()
   502     def description(self):
   502     def description(self):
   503         return self._changectx.description()
   503         return self._changectx.description()
       
   504     def branch(self):
       
   505         return self._changectx.branch()
   504 
   506 
   505 class filectx(basefilectx):
   507 class filectx(basefilectx):
   506     """A filecontext object makes access to data related to a particular
   508     """A filecontext object makes access to data related to a particular
   507        filerevision convenient."""
   509        filerevision convenient."""
   508     def __init__(self, repo, path, changeid=None, fileid=None,
   510     def __init__(self, repo, path, changeid=None, fileid=None,
   555         '''opens an arbitrary revision of the file without
   557         '''opens an arbitrary revision of the file without
   556         opening a new filelog'''
   558         opening a new filelog'''
   557         return filectx(self._repo, self._path, fileid=fileid,
   559         return filectx(self._repo, self._path, fileid=fileid,
   558                        filelog=self._filelog)
   560                        filelog=self._filelog)
   559 
   561 
   560     def branch(self):
       
   561         return self._changectx.branch()
       
   562     def extra(self):
   562     def extra(self):
   563         return self._changectx.extra()
   563         return self._changectx.extra()
   564     def phase(self):
   564     def phase(self):
   565         return self._changectx.phase()
   565         return self._changectx.phase()
   566     def phasestr(self):
   566     def phasestr(self):