This is an archive of the discontinued Mercurial Phabricator instance.

py3: don't double-convert "opts" to bytes
ClosedPublic

Authored by martinvonz on Sep 17 2019, 6:38 PM.

Details

Summary

The "opts" are already converted to bytes at the beginning of the
function. Doing it twice results in a crash, which makes
test-uncommit.t fail. The extra call was added recently, in
ff1ff2aae132 (uncommit: add support to modify the commit message and
date, 2019-09-07). test-uncommit.t passes again after this patch.

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

martinvonz created this revision.Sep 17 2019, 6:38 PM
pulkit accepted this revision.Sep 18 2019, 7:48 AM
This revision is now accepted and ready to land.Sep 18 2019, 7:48 AM
This revision was automatically updated to reflect the committed changes.