[PATCH 11 of 36] context: move __eq__ from changectx
Sean Farley
sean.michael.farley at gmail.com
Wed Aug 7 14:19:19 CDT 2013
raf at durin42.com writes:
> On Wed, Aug 07, 2013 at 01:13:11PM -0500, Sean Farley wrote:
>> # HG changeset patch
>> # User Sean Farley <sean.michael.farley at gmail.com>
>> # Date 1375740009 18000
>> # Mon Aug 05 17:00:09 2013 -0500
>> # Node ID b6fba3a11c94e653cab0a481788724c9a6b356df
>> # Parent d5f3b9240f8d6596e97917a18bf870d60fe7fe88
>> context: move __eq__ from changectx
>>
>> diff --git a/mercurial/context.py b/mercurial/context.py
>> --- a/mercurial/context.py
>> +++ b/mercurial/context.py
>> @@ -42,10 +42,16 @@
>> return self.rev()
>>
>> def __repr__(self):
>> return "<%s %s>" % (type(self).__name__, str(self))
>>
>> + def __eq__(self, other):
>
> Does this need to grow some if type(self) != type(other) armor?
Mayhaps? My plan was to just run the test suite and add more protection
when needed.
More information about the Mercurial-devel
mailing list