##// END OF EJS Templates
filectx: _fileid isn't normalized, use _filenode instead...
Benoit Boissinot -
r10942:6f26ce7a stable
parent child Browse files
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._fileid))
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._fileid == other._fileid)
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