revlog: choose best delta for parentdelta (
issue2466)
When parentdelta is enabled, we choose the delta that has the minimum
distance to its base. Otherwise, base may be sufficiently far away to
require a full version, resulting in greatly reduced compression.
revlog: fix buildtext local scope
buildtext stores its result in _addrevision scope to avoid repeated builds
cachedelta is already visible
i18n-ja: synchronized with
6f6f6a9c2a41
i18n-pt_BR: synchronized with
db2ff771204d
Reviewed formatting fixes from
eda77c3e246a.