Show More
@@ -378,7 +378,7 b' def _trimchunk(revlog, revs, startidx, e' | |||||
378 |
|
378 | |||
379 | return revs[startidx:endidx] |
|
379 | return revs[startidx:endidx] | |
380 |
|
380 | |||
381 |
def segmentspan(revlog, revs |
|
381 | def segmentspan(revlog, revs): | |
382 | """Get the byte span of a segment of revisions |
|
382 | """Get the byte span of a segment of revisions | |
383 |
|
383 | |||
384 | revs is a sorted array of revision numbers |
|
384 | revs is a sorted array of revision numbers | |
@@ -404,12 +404,6 b' def segmentspan(revlog, revs, deltainfo=' | |||||
404 | """ |
|
404 | """ | |
405 | if not revs: |
|
405 | if not revs: | |
406 | return 0 |
|
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 |
|
|
407 | end = revlog.end(revs[-1]) | |
414 | return end - revlog.start(revs[0]) |
|
408 | return end - revlog.start(revs[0]) | |
415 |
|
409 |
General Comments 0
You need to be logged in to leave comments.
Login now