Page MenuHomePhabricator

revlog-index: add `replace` method
Needs ReviewPublic

Authored by Alphare on Fri, Feb 19, 6:16 AM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

During a pull operation where the server does not provide sidedata, the client
that requires it should generate them on-the-fly. In the generic case, we need
to wait for the changelog + manifests + filelogs to be added, since we don't
know what the sidedata computers might need: this means rewriting the index
entries from within the pull transaction (and no further back) right after we've
added them.

The Python implementation does not guard against the accidental replacement of
an entry that is not within the transaction, but the C implementation does.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

Alphare created this revision.Fri, Feb 19, 6:16 AM
baymax updated this revision to Diff 25998.Mon, Mar 1, 11:52 AM

✅ refresh by Heptapod after a successful CI run (🐙 💚)