Mercurial > hg-stable
changeset 19583:e5074d82afc9
basefilectx: move __ne__ from filectx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Sun, 11 Aug 2013 22:49:40 -0500 |
parents | bda1d48bb07f |
children | fe300e63c28c |
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:49:03 2013 -0500 +++ b/mercurial/context.py Sun Aug 11 22:49:40 2013 -0500 @@ -474,6 +474,9 @@ except AttributeError: return False + def __ne__(self, other): + return not (self == other) + class filectx(basefilectx): """A filecontext object makes access to data related to a particular filerevision convenient.""" @@ -523,9 +526,6 @@ # considered when solving linkrev issue are on the table. return changectx(self._repo.unfiltered(), self._changeid) - def __ne__(self, other): - return not (self == other) - def filectx(self, fileid): '''opens an arbitrary revision of the file without opening a new filelog'''