# HG changeset patch # User Boris Feld # Date 1542290111 -3600 # Node ID fd1d41ccbe387285a122601dfd38f6d91977b791 # Parent 6d0fdeda43f79e52ad059ba0f75b610fa1b051ed sparse-revlog: use `span` variable as intended The variable was planned to be used in the while condition but was not used yet. diff -r 6d0fdeda43f7 -r fd1d41ccbe38 mercurial/revlogutils/deltas.py --- 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