Fix an odd revlog bug
authorMatt Mackall <mpm@selenic.com>
Fri, 08 Jul 2005 00:07:54 -0800
changeset 651 08b65d66f3e7
parent 650 2c934c7b79dc
child 652 a54a1c101a9a
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-----
mercurial/revlog.py
--- 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])