HomePhabricator

nodemap: write new data from the expected current data length

Authored by marmoute.

Description

nodemap: write new data from the expected current data length

If the amount of data in the file exceed the expect amount, we will overwrite
the extra data. This is a simple way to be safer.

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