comparison mercurial/metadata.py @ 45507:df87821081ee

changing-files: implement equality checking This makes debugging simpler.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 15 Sep 2020 15:03:07 +0200
parents 1f50bcc96595
children 64d18e9e8508
comparison
equal deleted inserted replaced
45506:1f50bcc96595 45507:df87821081ee
47 self._touched = set(touched) 47 self._touched = set(touched)
48 self._touched.update(self._added) 48 self._touched.update(self._added)
49 self._touched.update(self._removed) 49 self._touched.update(self._removed)
50 self._p1_copies = dict(p1_copies) 50 self._p1_copies = dict(p1_copies)
51 self._p2_copies = dict(p2_copies) 51 self._p2_copies = dict(p2_copies)
52
53 def __eq__(self, other):
54 return (
55 self.added == other.added
56 and self.removed == other.removed
57 and self.touched == other.touched
58 and self.copied_from_p1 == other.copied_from_p1
59 and self.copied_from_p2 == other.copied_from_p2
60 )
52 61
53 @property 62 @property
54 def added(self): 63 def added(self):
55 """files actively added in the changeset 64 """files actively added in the changeset
56 65