sparse-revlog: use `span` variable as intended
The variable was planned to be used in the while condition but was not used
yet.
--- 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