This is an archive of the discontinued Mercurial Phabricator instance.

dagutil: use revlog.parentrevs() for resolving parent revisions
ClosedPublic

Authored by indygreg on Aug 17 2018, 5:31 PM.

Details

Summary

And remove parents() since it is no longer used.

revlog.parentrevs() is almost the same as parents(). The main
difference is that parentrevs() can return nullrev. dagop.headrevs()
already handles nullrev. We add an inline check for nullrev in the
other call site to account for the difference.

.. api:: parents() removed from dagutil classes

Use parentrevs() on the storage object instead.

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.