This is an archive of the discontinued Mercurial Phabricator instance.

scmutil: introduce deprecated alias for revpair()
ClosedPublic

Authored by martinvonz on Apr 1 2018, 3:10 AM.

Details

Summary

revsingle() returns a context object, revpair() returns nodeids,
revrange() returns integer revisions (in a revset). I'm going to
reduce this inconsistency by making revpair() return context
objects. Changing the return type is not nice to extensions, so this
patch introduces a nodeid-returning version of revpair() that they can
detect and use. Update callers to the new function so we can change
revpair() itself and then migrate them back one by one.

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

martinvonz created this revision.Apr 1 2018, 3:10 AM
This revision was automatically updated to reflect the committed changes.