Mercurial > hg
changeset 39487:931386a0b108
revlog: drop duplicated code
This code probably got duplicated by a rebase/evolve conflict. We drop the
extra copy, the other copy is right below.
This had no real effects since other logic ensure that we never test the same
revision twice.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Tue, 04 Sep 2018 21:05:21 +0200 |
parents | 43d92d68ac88 |
children | d629b6d2f05a |
files | mercurial/revlogutils/deltas.py |
diffstat | 1 files changed, 0 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlogutils/deltas.py Wed Sep 05 09:04:40 2018 -0700 +++ b/mercurial/revlogutils/deltas.py Tue Sep 04 21:05:21 2018 +0200 @@ -621,19 +621,6 @@ curr = len(revlog) prev = curr - 1 - # should we try to build a delta? - if prev != nullrev and revlog._storedeltachains: - tested = set() - # This condition is true most of the time when processing - # changegroup data into a generaldelta repo. The only time it - # isn't true is if this is the first revision in a delta chain - # or if ``format.generaldelta=true`` disabled ``lazydeltabase``. - if cachedelta and gdelta and revlog._lazydeltabase: - # Assume what we received from the server is a good choice - # build delta will reuse the cache - yield (cachedelta[0],) - tested.add(cachedelta[0]) - # This condition is true most of the time when processing # changegroup data into a generaldelta repo. The only time it # isn't true is if this is the first revision in a delta chain