Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/revlog.py @ 4495:769cc8ef5b72
Also check the index file size when deciding whether to reload a revlog.
This should fix some spurious failures from test-clone-pull-corruption
(issue552).
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 04 Jun 2007 00:24:48 -0300 |
parents | 43dedce9667e |
children | 22ebd6ee5672 |
comparison
equal
deleted
inserted
replaced
4494:99f411ba0380 | 4495:769cc8ef5b72 |
---|---|
344 else: | 344 else: |
345 oldst = self.indexstat | 345 oldst = self.indexstat |
346 if (oldst and st.st_dev == oldst.st_dev | 346 if (oldst and st.st_dev == oldst.st_dev |
347 and st.st_ino == oldst.st_ino | 347 and st.st_ino == oldst.st_ino |
348 and st.st_mtime == oldst.st_mtime | 348 and st.st_mtime == oldst.st_mtime |
349 and st.st_ctime == oldst.st_ctime): | 349 and st.st_ctime == oldst.st_ctime |
350 and st.st_size == oldst.st_size): | |
350 return | 351 return |
351 self.indexstat = st | 352 self.indexstat = st |
352 if len(i) > 0: | 353 if len(i) > 0: |
353 v = struct.unpack(versionformat, i)[0] | 354 v = struct.unpack(versionformat, i)[0] |
354 flags = v & ~0xFFFF | 355 flags = v & ~0xFFFF |