( )⚙ D7326 index: add a `get_rev` method (API)

This is an archive of the discontinued Mercurial Phabricator instance.

index: add a `get_rev` method (API)
ClosedPublic

Authored by marmoute on Nov 8 2019, 8:34 AM.

Details

Summary

The new index.getrev(node) is to be preferred over using:
index.nodemap.get(node).

This get us closer to be able to remove the nodemap attribute of the index.

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.