[PATCH 1 of 6] util: add __ne__ to filestat class for consistency

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Thu Jun 2 15:47:41 UTC 2016


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1464882260 -32400
#      Fri Jun 03 00:44:20 2016 +0900
# Node ID 14bb84173e73e00d5d761d00f14c4ff6c2b23afd
# Parent  9ac309946df9e69bb73ded75f2fc5b84a4e785c2
util: add __ne__ to filestat class for consistency

This is follow up for ca4065028e00, which introduced filestat class.

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -1455,6 +1455,9 @@ class filestat(object):
         except AttributeError:
             return False
 
+    def __ne__(self, other):
+        return not self == other
+
 class atomictempfile(object):
     '''writable file object that atomically updates a file
 


More information about the Mercurial-devel mailing list