util: add __ne__ to filestat class for consistency
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Fri, 03 Jun 2016 00:44:20 +0900
changeset 29298 82f6193ff2bc
parent 29297 50fef8252820
child 29299 76b07a5c064b
util: add __ne__ to filestat class for consistency This is follow up for ca4065028e00, which introduced filestat class.
mercurial/util.py
--- a/mercurial/util.py	Sat Apr 16 16:01:24 2016 -0700
+++ b/mercurial/util.py	Fri Jun 03 00:44:20 2016 +0900
@@ -1455,6 +1455,9 @@
         except AttributeError:
             return False
 
+    def __ne__(self, other):
+        return not self == other
+
 class atomictempfile(object):
     '''writable file object that atomically updates a file