basefilectx: move __ne__ from filectx
authorSean Farley <sean.michael.farley@gmail.com>
Sun, 11 Aug 2013 22:49:40 -0500
changeset 19583 e5074d82afc9
parent 19582 bda1d48bb07f
child 19584 fe300e63c28c
basefilectx: move __ne__ from filectx
mercurial/context.py
--- 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'''