Show More
@@ -143,7 +143,7 b' class lazyparser(object):' | |||
|
143 | 143 | # the revlog may have grown since we've started running, |
|
144 | 144 | # but we don't have space in self.index for more entries. |
|
145 | 145 | # limit blocksize so that we don't get too much data. |
|
146 | blocksize = self.datasize - blockstart | |
|
146 | blocksize = max(self.datasize - blockstart, 0) | |
|
147 | 147 | data = self.dataf.read(blocksize) |
|
148 | 148 | lend = len(data) / self.s |
|
149 | 149 | i = blockstart / self.s |
General Comments 0
You need to be logged in to leave comments.
Login now