##// END OF EJS Templates
sparse-revlog: drop unused deltainfo parameter from segmentspan...
Boris Feld -
r40641:a32ccd32 default
parent child Browse files
Show More
@@ -378,7 +378,7 b' def _trimchunk(revlog, revs, startidx, e'
378 378
379 379 return revs[startidx:endidx]
380 380
381 def segmentspan(revlog, revs, deltainfo=None):
381 def segmentspan(revlog, revs):
382 382 """Get the byte span of a segment of revisions
383 383
384 384 revs is a sorted array of revision numbers
@@ -404,13 +404,7 b' def segmentspan(revlog, revs, deltainfo='
404 404 """
405 405 if not revs:
406 406 return 0
407 if deltainfo is not None and len(revlog) <= revs[-1]:
408 if len(revs) == 1:
409 return deltainfo.deltalen
410 offset = revlog.end(len(revlog) - 1)
411 end = deltainfo.deltalen + offset
412 else:
413 end = revlog.end(revs[-1])
407 end = revlog.end(revs[-1])
414 408 return end - revlog.start(revs[0])
415 409
416 410 def _textfromdelta(fh, revlog, baserev, delta, p1, p2, flags, expectednode):
General Comments 0
You need to be logged in to leave comments. Login now