# HG changeset patch # User FUJIWARA Katsunori # Date 2016-06-02 15:44:20 # Node ID 82f6193ff2bc26dc1824cbcea40895350edee69d # Parent 50fef8252820d19b0e7a3021bf0f4523379d6460 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