Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 4224:2a8b6d78d7ee
Merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 15 Mar 2007 18:57:47 -0500 |
parents | 40030c1b6bc6 90bb1ab53a85 |
children | 1b5c38e9d7aa |
comparison
equal
deleted
inserted
replaced
4223:6af3df7822ed | 4224:2a8b6d78d7ee |
---|---|
426 e = struct.unpack(self.indexformat, cur) | 426 e = struct.unpack(self.indexformat, cur) |
427 self.index.append(e) | 427 self.index.append(e) |
428 self.nodemap[e[-1]] = n | 428 self.nodemap[e[-1]] = n |
429 n += 1 | 429 n += 1 |
430 if inline: | 430 if inline: |
431 if e[1] < 0: | |
432 break | |
431 off += e[1] | 433 off += e[1] |
432 if off > l: | 434 if off > l: |
433 # some things don't seek well, just read it | 435 # some things don't seek well, just read it |
434 fp.read(off - l) | 436 fp.read(off - l) |
437 break | |
435 if not st: | 438 if not st: |
436 break | 439 break |
437 | 440 |
438 | 441 |
439 def ngoffset(self, q): | 442 def ngoffset(self, q): |