mercurial/metadata.py
changeset 45507 df87821081ee
parent 45506 1f50bcc96595
child 45569 64d18e9e8508
--- a/mercurial/metadata.py	Thu Sep 17 11:21:13 2020 +0200
+++ b/mercurial/metadata.py	Tue Sep 15 15:03:07 2020 +0200
@@ -50,6 +50,15 @@
         self._p1_copies = dict(p1_copies)
         self._p2_copies = dict(p2_copies)
 
+    def __eq__(self, other):
+        return (
+            self.added == other.added
+            and self.removed == other.removed
+            and self.touched == other.touched
+            and self.copied_from_p1 == other.copied_from_p1
+            and self.copied_from_p2 == other.copied_from_p2
+        )
+
     @property
     def added(self):
         """files actively added in the changeset