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