##// END OF EJS Templates
revlog: attempt to gracefully handle some interleaved damage
Matt Mackall -
r4215:90bb1ab5 default
parent child Browse files
Show More
@@ -425,10 +425,13 b' class revlog(object):'
425 self.nodemap[e[-1]] = n
425 self.nodemap[e[-1]] = n
426 n += 1
426 n += 1
427 if inline:
427 if inline:
428 if e[1] < 0:
429 break
428 off += e[1]
430 off += e[1]
429 if off > l:
431 if off > l:
430 # some things don't seek well, just read it
432 # some things don't seek well, just read it
431 fp.read(off - l)
433 fp.read(off - l)
434 break
432 if not st:
435 if not st:
433 break
436 break
434
437
General Comments 0
You need to be logged in to leave comments. Login now