This is an archive of the discontinued Mercurial Phabricator instance.

fsmonitor: fix str/bytes mismatch when accessing watchman version
ClosedPublic

Authored by indygreg on Nov 2 2019, 6:03 PM.

Details

Summary

There were 2 bugs here. First, keys in the tuple are always
str. Second, we needed to normalize the value to bytes to
prevent a str/bytes mismatch on Python 3.

With this commit, hg debuginstall with fsmonitor enabled now
works on Python 3.

Diff Detail

Repository
rHG Mercurial
Branch
stable
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

indygreg created this revision.Nov 2 2019, 6:03 PM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.