Show More
@@ -276,14 +276,14 b' class filectx(object):' | |||||
276 |
|
276 | |||
277 | def __hash__(self): |
|
277 | def __hash__(self): | |
278 | try: |
|
278 | try: | |
279 |
return hash((self._path, self._file |
|
279 | return hash((self._path, self._filenode)) | |
280 | except AttributeError: |
|
280 | except AttributeError: | |
281 | return id(self) |
|
281 | return id(self) | |
282 |
|
282 | |||
283 | def __eq__(self, other): |
|
283 | def __eq__(self, other): | |
284 | try: |
|
284 | try: | |
285 | return (self._path == other._path |
|
285 | return (self._path == other._path | |
286 |
and self._file |
|
286 | and self._filenode == other._filenode) | |
287 | except AttributeError: |
|
287 | except AttributeError: | |
288 | return False |
|
288 | return False | |
289 |
|
289 |
General Comments 0
You need to be logged in to leave comments.
Login now