Mercurial > hg-stable
comparison mercurial/context.py @ 8401:ca7dc47eecc6
filecommit: swallow some bits from _commitctx, add _
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 14 May 2009 13:20:40 -0500 |
parents | a00a4db76a15 |
children | 6ad1f72bdf34 |
comparison
equal
deleted
inserted
replaced
8400:9eecc471aca3 | 8401:ca7dc47eecc6 |
---|---|
745 return self._rev | 745 return self._rev |
746 | 746 |
747 def __nonzero__(self): | 747 def __nonzero__(self): |
748 return True | 748 return True |
749 | 749 |
750 def __getitem__(self, key): | |
751 return self.filectx(key) | |
752 | |
750 def user(self): return self._user or self._repo.ui.username() | 753 def user(self): return self._user or self._repo.ui.username() |
751 def date(self): return self._date | 754 def date(self): return self._date |
752 def description(self): return self._text | 755 def description(self): return self._text |
753 def files(self): return self.modified() | 756 def files(self): return self.modified() |
754 def modified(self): return self._status[0] | 757 def modified(self): return self._status[0] |