This is a follow-up patch to 51a2e3102db2. This removes
pycompat.bytestr to preserve None in commands.config().
Details
Details
- Reviewers
pulkit durin42 - Group Reviewers
hg-reviewers - Commits
- rHG049b2ac3252e: config: remove pycompat.bytestr() for defaultvalue
Diff Detail
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
Comment Actions
For some reasons, my previous comment seems to have never made it to phabricator:
You description says the changesets does three things. So it should be three different changesets. Can you split them ?
I don't understand why we are adding a warning here. The API usage seems valid.
Comment Actions
The pycompat.bytestr() was there for py3 compatibility, however removing it should be fine in this case. Can you make sure test-config.t passes with this patch on Python 3?
Comment Actions
The pycompat.bytestr() was there for py3 compatibility,
Not really for the "value" variable which may be unprintable object, but
I think it's okay to assume defaultvalues are None/bool/int/float/bytes type.