This is an archive of the discontinued Mercurial Phabricator instance.

revlog: extract function for getting node from known-to-exist rev
ClosedPublic

Authored by martinvonz on May 7 2018, 12:55 PM.

Details

Summary

Many of the calls to index_node() (which converts a rev to a nodeid)
are done with a rev that's know to exist. If the function fails,
there's something really wrong and we should just abort. This was done
in only one place. This patch starts by extracting that code to a
function that we can reuse in later patches.

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.