This is an archive of the discontinued Mercurial Phabricator instance.

context: avoid using a context object as a changeid
ClosedPublic

Authored by martinvonz on Mar 30 2018, 2:09 AM.

Details

Summary

I find it misleading to pass changeid=changectx. It currently works to
do that because there's weird (IMO) handling of it in
basectx.new. I'm planning on removing that code. Passing changeid
as "changeid" and context as "context" makes it more readable.

Note that the documentation of filectx.init doesn't even seem to
be aware that a changeid can be a context ("changeset revision, node,
or tag").

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

martinvonz created this revision.Mar 30 2018, 2:09 AM
indygreg accepted this revision.Mar 30 2018, 1:20 PM
indygreg added a subscriber: indygreg.

Oh wow. Thanks for cleaning this up.

This revision is now accepted and ready to land.Mar 30 2018, 1:20 PM
This revision was automatically updated to reflect the committed changes.