This is an archive of the discontinued Mercurial Phabricator instance.

histedit: resolve revs before evaluating %ld revset
ClosedPublic

Authored by indygreg on Feb 24 2018, 2:30 PM.

Details

Summary

We want to stop relying on basectx.int. That means we can't
use the %ld revset operator with an iterable of contexts. So
we expand an iterable of contexts into a list of revs before calling
into the revset.

Perhaps it would be worthwhile to add a revset format operator
that recognizes context instances so we can just pass contexts
as revset arguments?

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.Feb 24 2018, 2:30 PM
yuja accepted this revision.Feb 24 2018, 8:36 PM
This revision is now accepted and ready to land.Feb 24 2018, 8:36 PM
This revision was automatically updated to reflect the committed changes.