Mercurial > hg
changeset 19579:964844d64ef8
basefilectx: move __str__ from filectx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Sun, 11 Aug 2013 22:45:30 -0500 |
parents | 2c149635c2c5 |
children | e86a594ab11f |
files | mercurial/context.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Sun Aug 11 22:45:13 2013 -0500 +++ b/mercurial/context.py Sun Aug 11 22:45:30 2013 -0500 @@ -455,6 +455,9 @@ # file is missing return False + def __str__(self): + return "%s@%s" % (self.path(), short(self.node())) + class filectx(basefilectx): """A filecontext object makes access to data related to a particular filerevision convenient.""" @@ -504,9 +507,6 @@ # considered when solving linkrev issue are on the table. return changectx(self._repo.unfiltered(), self._changeid) - def __str__(self): - return "%s@%s" % (self.path(), short(self.node())) - def __repr__(self): return "<filectx %s>" % str(self)