# HG changeset patch # User Boris Feld <boris.f...@octobus.net> # Date 1542290111 -3600 # Thu Nov 15 14:55:11 2018 +0100 # Node ID 7f510ce447f6e16ba1970606615fcb78946d7146 # Parent f83cea7f54d7c8c47ad739d1225e5fc3918b542c # EXP-Topic follow-up-revlog # Available At https://bitbucket.org/octobus/mercurial-devel/ # hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 7f510ce447f6 sparse-revlog: use `span` variable as intended
The variable was planned to be used in the while condition but was not used yet. diff --git a/mercurial/revlogutils/deltas.py b/mercurial/revlogutils/deltas.py --- a/mercurial/revlogutils/deltas.py +++ b/mercurial/revlogutils/deltas.py @@ -264,7 +264,7 @@ def _slicechunktosize(revlog, revs, targ 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 _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel