HomePhabricator

index: add a `get_rev` method (API)

Authored by marmoute.

Description

index: add a get_rev method (API)

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.

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

Details

Committed
marmouteNov 9 2019, 7:23 AM
Differential Revision
D7326: index: add a `get_rev` method (API)
Parents
rHG2da51e292734: index: use `index.rev` in `revlog.rev`
Branches
Unknown
Tags
Unknown