This is an archive of the discontinued Mercurial Phabricator instance.

wireprotoserver: return to using iscmd() method
ClosedPublic

Authored by durin42 on Feb 15 2018, 5:31 PM.

Details

Summary

This was teased out in part so remotefilelog could disable an old
protocol method over http. It got dropped accidentally in the recent
refactor, but the code was all still present so it's easy to support
for now.

I think once we land remotefilelog, we should probably inline this
function.

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

durin42 created this revision.Feb 15 2018, 5:31 PM
indygreg accepted this revision.Feb 15 2018, 6:21 PM
indygreg added a subscriber: indygreg.

FWIW, I plan to add a mechanism to @wireprotocommand to declare which protocols the command is enabled for. I'll likely have those patches within a week. But until then, we can restore this.

This revision is now accepted and ready to land.Feb 15 2018, 6:21 PM
This revision was automatically updated to reflect the committed changes.