comparison mercurial/context.py @ 19599:66d83efac20a

basefilectx: move phasestr from filectx
author Sean Farley <sean.michael.farley@gmail.com>
date Sun, 11 Aug 2013 22:54:58 -0500
parents e8ef893a3150
children 12cdff44fdc4
comparison
equal deleted inserted replaced
19598:e8ef893a3150 19599:66d83efac20a
505 return self._changectx.branch() 505 return self._changectx.branch()
506 def extra(self): 506 def extra(self):
507 return self._changectx.extra() 507 return self._changectx.extra()
508 def phase(self): 508 def phase(self):
509 return self._changectx.phase() 509 return self._changectx.phase()
510 def phasestr(self):
511 return self._changectx.phasestr()
510 512
511 class filectx(basefilectx): 513 class filectx(basefilectx):
512 """A filecontext object makes access to data related to a particular 514 """A filecontext object makes access to data related to a particular
513 filerevision convenient.""" 515 filerevision convenient."""
514 def __init__(self, repo, path, changeid=None, fileid=None, 516 def __init__(self, repo, path, changeid=None, fileid=None,
561 '''opens an arbitrary revision of the file without 563 '''opens an arbitrary revision of the file without
562 opening a new filelog''' 564 opening a new filelog'''
563 return filectx(self._repo, self._path, fileid=fileid, 565 return filectx(self._repo, self._path, fileid=fileid,
564 filelog=self._filelog) 566 filelog=self._filelog)
565 567
566 def phasestr(self):
567 return self._changectx.phasestr()
568 def manifest(self): 568 def manifest(self):
569 return self._changectx.manifest() 569 return self._changectx.manifest()
570 def changectx(self): 570 def changectx(self):
571 return self._changectx 571 return self._changectx
572 572