Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 19597:837bc86370f0
basefilectx: move extra from filectx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Sun, 11 Aug 2013 22:54:39 -0500 |
parents | 9bc3d0dea371 |
children | e8ef893a3150 |
comparison
equal
deleted
inserted
replaced
19596:9bc3d0dea371 | 19597:837bc86370f0 |
---|---|
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): | 504 def branch(self): |
505 return self._changectx.branch() | 505 return self._changectx.branch() |
506 def extra(self): | |
507 return self._changectx.extra() | |
506 | 508 |
507 class filectx(basefilectx): | 509 class filectx(basefilectx): |
508 """A filecontext object makes access to data related to a particular | 510 """A filecontext object makes access to data related to a particular |
509 filerevision convenient.""" | 511 filerevision convenient.""" |
510 def __init__(self, repo, path, changeid=None, fileid=None, | 512 def __init__(self, repo, path, changeid=None, fileid=None, |
557 '''opens an arbitrary revision of the file without | 559 '''opens an arbitrary revision of the file without |
558 opening a new filelog''' | 560 opening a new filelog''' |
559 return filectx(self._repo, self._path, fileid=fileid, | 561 return filectx(self._repo, self._path, fileid=fileid, |
560 filelog=self._filelog) | 562 filelog=self._filelog) |
561 | 563 |
562 def extra(self): | |
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): |
567 return self._changectx.phasestr() | 567 return self._changectx.phasestr() |
568 def manifest(self): | 568 def manifest(self): |