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
Branch
stable
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

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

Shouldn't this be a simple == then?

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

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.