This is an archive of the discontinued Mercurial Phabricator instance.

py3: encode the name to bytes before using in revsetpredicate()
ClosedPublic

Authored by pulkit on Sep 20 2018, 11:50 AM.

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

pulkit created this revision.Sep 20 2018, 11:50 AM
indygreg added inline comments.
tests/test-extension.t
108

name will already be bytes on Python 2. But, .encode() will still work because Python 2 has an encode() on bytes. So I think this is fine. If this weren't test code, I would have a different opinion.

This revision was automatically updated to reflect the committed changes.