Mercurial > hg
comparison mercurial/context.py @ 19593:e3c241c89350
basefilectx: move date from filectx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Sun, 11 Aug 2013 22:53:56 -0500 |
parents | 1cdb3b3df4df |
children | 1c030c24e196 |
comparison
equal
deleted
inserted
replaced
19592:1cdb3b3df4df | 19593:e3c241c89350 |
---|---|
493 return self._changectx.node() | 493 return self._changectx.node() |
494 def hex(self): | 494 def hex(self): |
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): | |
499 return self._changectx.date() | |
498 | 500 |
499 class filectx(basefilectx): | 501 class filectx(basefilectx): |
500 """A filecontext object makes access to data related to a particular | 502 """A filecontext object makes access to data related to a particular |
501 filerevision convenient.""" | 503 filerevision convenient.""" |
502 def __init__(self, repo, path, changeid=None, fileid=None, | 504 def __init__(self, repo, path, changeid=None, fileid=None, |
549 '''opens an arbitrary revision of the file without | 551 '''opens an arbitrary revision of the file without |
550 opening a new filelog''' | 552 opening a new filelog''' |
551 return filectx(self._repo, self._path, fileid=fileid, | 553 return filectx(self._repo, self._path, fileid=fileid, |
552 filelog=self._filelog) | 554 filelog=self._filelog) |
553 | 555 |
554 def date(self): | |
555 return self._changectx.date() | |
556 def files(self): | 556 def files(self): |
557 return self._changectx.files() | 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): |