Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/context.py Thu May 14 13:20:40 2009 -0500 +++ b/mercurial/context.py Thu May 14 13:20:40 2009 -0500 @@ -747,6 +747,9 @@ def __nonzero__(self): return True + def __getitem__(self, key): + return self.filectx(key) + def user(self): return self._user or self._repo.ui.username() def date(self): return self._date def description(self): return self._text