Patchwork [01,of,10,V2] revlog: limit base to rev size ratio to 500 instead of 50

login
register
mail settings
Submitter Boris Feld
Date Dec. 21, 2018, 11:47 a.m.
Message ID <d51d82a46d9545235be7.1545392824@localhost.localdomain>
Download mbox | patch
Permalink /patch/37294/
State Accepted
Headers show

Comments

Yuya Nishihara - Dec. 22, 2018, 3:18 a.m.
On Fri, 21 Dec 2018 12:47:04 +0100, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld@octobus.net>
> # Date 1545213265 -3600
> #      Wed Dec 19 10:54:25 2018 +0100
> # Node ID d51d82a46d9545235be727b875deeffd9de324e9
> # Parent  e88ced97151db99196c16b3db31a19daf6df5d5d
> # EXP-Topic sparse-revlog
> # Available At https://bitbucket.org/octobus/mercurial-devel/
> #              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r d51d82a46d95
> revlog: limit base to rev size ratio to 500 instead of 50

Queued this, thanks.

Patch

diff --git a/mercurial/revlogutils/deltas.py b/mercurial/revlogutils/deltas.py
--- a/mercurial/revlogutils/deltas.py
+++ b/mercurial/revlogutils/deltas.py
@@ -604,7 +604,7 @@  def isgooddeltainfo(revlog, deltainfo, r
 # If a revision's full text is that much bigger than a base candidate full
 # text's, it is very unlikely that it will produce a valid delta. We no longer
 # consider these candidates.
-LIMIT_BASE2TEXT = 50
+LIMIT_BASE2TEXT = 500
 
 def _candidategroups(revlog, textlen, p1, p2, cachedelta):
     """Provides group of revision to be tested as delta base