This is an archive of the discontinued Mercurial Phabricator instance.

wireprotov2: re-add tuple around `bundle2` check
ClosedPublic

Authored by Alphare on Dec 4 2020, 6:43 AM.

Details

Summary

I stumbled upon this while looking for the current (v1) capable method. It
looks like 9c2c77c73f23 accidentally removed the comma, turning the tuple into
a simple parenthesis expression.

This has not been detected since wireproto2 is not in use AFAIK.

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

Alphare created this revision.Dec 4 2020, 6:43 AM
joerg.sonnenberger added inline comments.
mercurial/httppeer.py
898

Shouldn't this be a simple == then?

Alphare added inline comments.Dec 4 2020, 7:58 AM
mercurial/httppeer.py
898

I believe the intent was to have multiple things here, but yes, it could also be ==.

pulkit accepted this revision.Dec 6 2020, 6:53 AM
This revision is now accepted and ready to land.Dec 6 2020, 6:53 AM
This revision was automatically updated to reflect the committed changes.