diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -474,6 +474,9 @@ class basefilectx(object): 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 @@ class filectx(basefilectx): # 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'''