# HG changeset patch # User Alexis S. L. Carvalho # Date 1180927488 10800 # Node ID 769cc8ef5b7237fd388f66860b5429dcbc13673d # Parent 99f411ba038004bf30c8243d009061515c8a6472 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). diff -r 99f411ba0380 -r 769cc8ef5b72 mercurial/revlog.py --- 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: