HomePhabricator

revlog: simplify the replace_sidedata_info code

Authored by marmoute.

Description

revlog: simplify the replace_sidedata_info code

We already know how to serialize and de-serialize and enty. So lets just do that
and modify the entry tuple directly.

This avoid having to duplicated binary operation in complicated code.

Differential Revision: https://phab.mercurial-scm.org/D10641

Details

Committed
marmouteMay 3 2021, 6:02 PM
Differential Revision
D10641: revlog: simplify the replace_sidedata_info code
Parents
rHG3b04cf976c67: revlog: use `rev` instead of `i` in replace_sidedata_info
Branches
Unknown
Tags
Unknown