This is an archive of the discontinued Mercurial Phabricator instance.

revpair: simplify revpair by always relying on smartset.first/last
ClosedPublic

Authored by martinvonz on Jan 24 2019, 3:51 PM.

Details

Summary

I thinkt the code was written the way it was because it comes from
97b2f26dfc43 (revpair: smartset compatibility, 2014-03-20) and the
first/last methods came only later, in 228b0aafb1ce (smartset: add
first and last methods, 2014-10-06).

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.Jan 24 2019, 3:51 PM
This revision was automatically updated to reflect the committed changes.