mercurial/util.py
changeset 30332 318a24b52eeb
parent 30329 dadb00a0ec0f
child 30350 358cda0af6ee
equal deleted inserted replaced
30331:b19291e5d506 30332:318a24b52eeb
  1454     __hash__ = object.__hash__
  1454     __hash__ = object.__hash__
  1455 
  1455 
  1456     def __eq__(self, old):
  1456     def __eq__(self, old):
  1457         try:
  1457         try:
  1458             # if ambiguity between stat of new and old file is
  1458             # if ambiguity between stat of new and old file is
  1459             # avoided, comparision of size, ctime and mtime is enough
  1459             # avoided, comparison of size, ctime and mtime is enough
  1460             # to exactly detect change of a file regardless of platform
  1460             # to exactly detect change of a file regardless of platform
  1461             return (self.stat.st_size == old.stat.st_size and
  1461             return (self.stat.st_size == old.stat.st_size and
  1462                     self.stat.st_ctime == old.stat.st_ctime and
  1462                     self.stat.st_ctime == old.stat.st_ctime and
  1463                     self.stat.st_mtime == old.stat.st_mtime)
  1463                     self.stat.st_mtime == old.stat.st_mtime)
  1464         except AttributeError:
  1464         except AttributeError: