changeset 651:08b65d66f3e7

Fix an odd revlog bug -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fix an odd revlog bug If revlog had a cached -empty- revision, as opposed to no cached version, it could get confused. This cropped up in verify on a particular repo. manifest hash: 90ccf122087f6bbcb4322cb9d9bb8124610ba886 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCzjRaywK+sNU5EO8RAgVEAKCv3WBJt1rBOX0UlTDXFPygPIru+gCfTZxJ CEz1lYny1gkQ+haGY26QdBs= =C/K5 -----END PGP SIGNATURE-----
author Matt Mackall <mpm@selenic.com>
date Fri, 08 Jul 2005 00:07:54 -0800
parents 2c934c7b79dc
children a54a1c101a9a
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Fri Jul 08 00:04:25 2005 -0800
+++ b/mercurial/revlog.py	Fri Jul 08 00:07:54 2005 -0800
@@ -248,7 +248,7 @@
         f.seek(start)
         data = f.read(end - start)
 
-        if not text:
+        if text is None:
             last = self.length(base)
             text = decompress(data[:last])