This is an archive of the discontinued Mercurial Phabricator instance.

narrow: mark wire proto capability names experimental and versioned
ClosedPublic

Authored by martinvonz on Sep 11 2018, 5:56 PM.

Details

Summary

We already plan to add a "widen" wire protocol command to the "narrow"
capability, so let's version the capabilities as "exp-narrow-1" and
"exp-ellipses-1". When we add the "widen" command, we will then add a
"exp-narrow-2" capability to indicate support for that command.

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.Sep 11 2018, 5:56 PM
indygreg accepted this revision.Sep 11 2018, 6:16 PM
indygreg added a subscriber: indygreg.

Unfortunately we likely can never ship either the narrow or ellipsis capability as stable because it would confuse 4.7 clients, which will presumably have a different understanding of what narrow and ellipsis mean. But at least now it is clear from the strings that the feature is experimental and we have a way of versioning its semantics until it stabilizes.

This revision is now accepted and ready to land.Sep 11 2018, 6:16 PM
This revision was automatically updated to reflect the committed changes.

Unfortunately we likely can never ship either the narrow or ellipsis capability as stable because it would confuse 4.7 clients, which will presumably have a different understanding of what narrow and ellipsis mean. But at least now it is clear from the strings that the feature is experimental and we have a way of versioning its semantics until it stabilizes.

Note that the "narrow" and "ellipses" wire protocol capabilities were introduced earlier today (D4521), so no released version has them.

Unfortunately we likely can never ship either the narrow or ellipsis capability as stable because it would confuse 4.7 clients, which will presumably have a different understanding of what narrow and ellipsis mean. But at least now it is clear from the strings that the feature is experimental and we have a way of versioning its semantics until it stabilizes.

Note that the "narrow" and "ellipses" wire protocol capabilities were introduced earlier today (D4521), so no released version has them.

Then there's nothing to worry about. Yay!