This is an archive of the discontinued Mercurial Phabricator instance.

cmdutil: allow native string as input to check_at_most_one_arg()
ClosedPublic

Authored by martinvonz on Dec 18 2019, 2:38 PM.

Details

Summary

We seem to always convert **opts args to use bytes as keys early on in
Mercurial core, but I'm not sure we have good reason to do that, and
not all extensions do that. It's therefore helpful to be able to pass
in a native string to check_at_most_one_arg().

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.Dec 18 2019, 2:38 PM
pulkit accepted this revision.Dec 19 2019, 12:12 PM
pulkit added a subscriber: pulkit.

I hope one day we have a clear understanding of what is bytes and what is not in core.

This revision is now accepted and ready to land.Dec 19 2019, 12:12 PM