Also check the index file size when deciding whether to reload a revlog.
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Mon, 04 Jun 2007 00:24:48 -0300
changeset 4483 769cc8ef5b72
parent 4482 99f411ba0380
child 4484 7605da1c3b5c
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).
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: