sparse-revlog: use `span` variable as intended
authorBoris Feld <boris.feld@octobus.net>
Thu, 15 Nov 2018 14:55:11 +0100
changeset 40654 fd1d41ccbe38
parent 40653 6d0fdeda43f7
child 40657 2eb48aa0acce
sparse-revlog: use `span` variable as intended The variable was planned to be used in the while condition but was not used yet.
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