# HG changeset patch # User Alexis S. L. Carvalho # Date 2007-06-04 03:24:48 # 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 --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -346,7 +346,8 @@ class revlog(object): 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: