Mercurial > hg-stable
changeset 4483: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 | 99f411ba0380 |
children | 7605da1c3b5c |
files | mercurial/revlog.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: