Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/revlog.py @ 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 | 6ebe118280bd |
children | 94cdd02792b5 |
comparison
equal
deleted
inserted
replaced
650:2c934c7b79dc | 651:08b65d66f3e7 |
---|---|
246 | 246 |
247 f = self.opener(self.datafile) | 247 f = self.opener(self.datafile) |
248 f.seek(start) | 248 f.seek(start) |
249 data = f.read(end - start) | 249 data = f.read(end - start) |
250 | 250 |
251 if not text: | 251 if text is None: |
252 last = self.length(base) | 252 last = self.length(base) |
253 text = decompress(data[:last]) | 253 text = decompress(data[:last]) |
254 | 254 |
255 bins = [] | 255 bins = [] |
256 for r in xrange(base + 1, rev + 1): | 256 for r in xrange(base + 1, rev + 1): |