# HG changeset patch # User Sean Farley # Date 1375740032 18000 # Node ID 730fdcaa791d5da6ad312aa2939ab923775d90c4 # Parent 0537c0cfd87c307904a7eb38063b7c2b5fe826fb basectx: move __ne__ from changectx diff -r 0537c0cfd87c -r 730fdcaa791d mercurial/context.py --- a/mercurial/context.py Mon Aug 05 17:00:09 2013 -0500 +++ b/mercurial/context.py Mon Aug 05 17:00:32 2013 -0500 @@ -50,6 +50,9 @@ 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 @@ except AttributeError: return id(self) - def __ne__(self, other): - return not (self == other) - def __nonzero__(self): return self._rev != nullrev