Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/context.py @ 19594:1c030c24e196
basefilectx: move files from filectx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Sun, 11 Aug 2013 22:54:12 -0500 |
parents | e3c241c89350 |
children | bb6fd06975a6 |
comparison
equal
deleted
inserted
replaced
19593:e3c241c89350 | 19594:1c030c24e196 |
---|---|
495 return self._changectx.hex() | 495 return self._changectx.hex() |
496 def user(self): | 496 def user(self): |
497 return self._changectx.user() | 497 return self._changectx.user() |
498 def date(self): | 498 def date(self): |
499 return self._changectx.date() | 499 return self._changectx.date() |
500 def files(self): | |
501 return self._changectx.files() | |
500 | 502 |
501 class filectx(basefilectx): | 503 class filectx(basefilectx): |
502 """A filecontext object makes access to data related to a particular | 504 """A filecontext object makes access to data related to a particular |
503 filerevision convenient.""" | 505 filerevision convenient.""" |
504 def __init__(self, repo, path, changeid=None, fileid=None, | 506 def __init__(self, repo, path, changeid=None, fileid=None, |
551 '''opens an arbitrary revision of the file without | 553 '''opens an arbitrary revision of the file without |
552 opening a new filelog''' | 554 opening a new filelog''' |
553 return filectx(self._repo, self._path, fileid=fileid, | 555 return filectx(self._repo, self._path, fileid=fileid, |
554 filelog=self._filelog) | 556 filelog=self._filelog) |
555 | 557 |
556 def files(self): | |
557 return self._changectx.files() | |
558 def description(self): | 558 def description(self): |
559 return self._changectx.description() | 559 return self._changectx.description() |
560 def branch(self): | 560 def branch(self): |
561 return self._changectx.branch() | 561 return self._changectx.branch() |
562 def extra(self): | 562 def extra(self): |