diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -50,6 +50,9 @@ class basectx(object): except AttributeError: return False + def __ne__(self, other): + return not (self == other) + def rev(self): return self._rev def node(self): @@ -168,9 +171,6 @@ class changectx(basectx): except AttributeError: return id(self) - def __ne__(self, other): - return not (self == other) - def __nonzero__(self): return self._rev != nullrev