This is an archive of the discontinued Mercurial Phabricator instance.

index: split up nt_init() in two
ClosedPublic

Authored by martinvonz on Aug 5 2018, 3:58 AM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Commits
rHGc0b6a7c78a21: index: split up nt_init() in two
Summary

I'd like to make nt_init() take a pointer to a nodetree to initialize,
but it currently also allocates the nodetree. This patch prepares for
that change by making nt_init() be about initializing an existing node
tree and by creating a new index_init_nt() that creates the nodetree.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Aug 5 2018, 3:58 AM
martinvonz updated this revision to Diff 9979.Aug 6 2018, 9:24 AM
martinvonz updated this revision to Diff 10038.Aug 7 2018, 2:27 AM
This revision was automatically updated to reflect the committed changes.