This is an archive of the discontinued Mercurial Phabricator instance.

httppeer: remove redundant code to fetch capabilities
ClosedPublic

Authored by indygreg on Feb 12 2018, 10:48 PM.

Details

Summary

_fetchcaps() is called by httppeer.instance(), which is the only
instantiator of httppeer. Since _fetchcaps() always sets self._caps
and since 197d10e157ce removed the fallback for cases where the
remote doesn't support capabilities, we can remove some dead
code from httppeer.capabilities().

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Feb 12 2018, 10:48 PM
lothiraldan accepted this revision.Feb 13 2018, 3:58 AM
This revision was automatically updated to reflect the committed changes.