comparison mercurial/py3kcompat.py @ 27180:8e7db961535a

addrevision: only use the incoming base if it is a good delta (issue4975) Before this change, the 'lazydeltabase' would blindly build a delta using the base provided by the incoming bundle and try to use it. If that base was far down the revlog, the delta would be seen as "no good" and we would fall back to a full text revision. We now check if the delta is good and fallback to a computing a delta again the tipmost revision otherwise (as we would do without general delta). Later changesets will improve the logic to compute the fallback delta using the general delta logic.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 01 Dec 2015 16:06:20 -0800
parents a7a9d84f5e4a
children 5bfd01a3c2a9
comparison
equal deleted inserted replaced
27179:b481bf14992d 27180:8e7db961535a