Mercurial > hg
changeset 19540:7b864da00e21
basectx: move __str__ from changectx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Fri, 02 Aug 2013 16:46:23 -0500 |
parents | 79671c46bb46 |
children | 421d49f2f8e2 |
files | mercurial/context.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Tue Aug 06 16:42:41 2013 -0500 +++ b/mercurial/context.py Fri Aug 02 16:46:23 2013 -0500 @@ -35,6 +35,9 @@ return o + def __str__(self): + return short(self.node()) + class changectx(basectx): """A changecontext object makes access to data related to a particular changeset convenient. It represents a read-only context already presnt in @@ -140,9 +143,6 @@ raise error.RepoLookupError( _("unknown revision '%s'") % changeid) - def __str__(self): - return short(self.node()) - def __int__(self): return self.rev()