Mercurial > hg-stable
changeset 40697:fd1d41ccbe38
sparse-revlog: use `span` variable as intended
The variable was planned to be used in the while condition but was not used
yet.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 15 Nov 2018 14:55:11 +0100 |
parents | 6d0fdeda43f7 |
children | 2eb48aa0acce |
files | mercurial/revlogutils/deltas.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlogutils/deltas.py Thu Nov 15 17:38:51 2018 -0500 +++ b/mercurial/revlogutils/deltas.py Thu Nov 15 14:55:11 2018 +0100 @@ -264,7 +264,7 @@ break # protect against individual chunk larger than limit localenddata = revlog.end(revs[endrevidx - 1]) span = localenddata - startdata - while (localenddata - startdata) > targetsize: + while span > targetsize: if endrevidx - startrevidx <= 1: break # protect against individual chunk larger than limit endrevidx -= (endrevidx - startrevidx) // 2