This is an archive of the discontinued Mercurial Phabricator instance.

setdiscovery: don't use dagutil for rev -> node conversions
ClosedPublic

Authored by indygreg on Aug 16 2018, 4:43 PM.

Details

Summary

We don't need to use dagutil to perform a simple rev -> node
conversion.

I haven't measured, but the new code is likely faster, as we
avoid extra function calls and avoid some attribute lookups.

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

indygreg created this revision.Aug 16 2018, 4:43 PM
This revision was automatically updated to reflect the committed changes.