##// END OF EJS Templates
obsolete: add __eq__ and __hash__ to marker to make set() deduplication work
Augie Fackler -
r20031:6c1adf20 default
parent child Browse files
Show More
@@ -196,6 +196,14 b' class marker(object):'
196 self._data = data
196 self._data = data
197 self._decodedmeta = None
197 self._decodedmeta = None
198
198
199 def __hash__(self):
200 return hash(self._data)
201
202 def __eq__(self, other):
203 if type(other) != type(self):
204 return False
205 return self._data == other._data
206
199 def precnode(self):
207 def precnode(self):
200 """Precursor changeset node identifier"""
208 """Precursor changeset node identifier"""
201 return self._data[0]
209 return self._data[0]
General Comments 0
You need to be logged in to leave comments. Login now