This is an archive of the discontinued Mercurial Phabricator instance.

fsmonitor: make _hashignore compatible with Python 3
ClosedPublic

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

Details

Summary

The Hasher wants a bytes but we were feeding it a str. Let's
use our repr() implementation to return bytes.

In addition, the hexdigest() would return a str, which would be
compared against a bytes and would always fail. Normalize to
bytes so the compare works.

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.