revlog: use rev instead of i in replace_sidedata_info
This is clearer.
Differential Revision: https://phab.mercurial-scm.org/D10640