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).
--- a/mercurial/revlog.py Mon Jun 04 00:24:48 2007 -0300
+++ b/mercurial/revlog.py Mon Jun 04 00:24:48 2007 -0300
@@ -346,7 +346,8 @@
if (oldst and st.st_dev == oldst.st_dev
and st.st_ino == oldst.st_ino
and st.st_mtime == oldst.st_mtime
- and st.st_ctime == oldst.st_ctime):
+ and st.st_ctime == oldst.st_ctime
+ and st.st_size == oldst.st_size):
return
self.indexstat = st
if len(i) > 0: