This gets us a bunch closer on Python 3, but I'll still have to use a
ton of sad globs. A previous version of this patch tried to preserve
the %r formatting, but upon review Yuya noted that special characters
in extension names is very unlikely, so we can just use %s and not
sweat the quoting.
Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG09a37a5d8f5d: extensions: fix up many many debug logs that use %r
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
Switching to %s loses some quotes I like having.
mercurial/extensions.py | ||
---|---|---|
178 | That'll result in less quoting in the output, and I like having the quoting. |
Comment Actions
How do we want to move forward with this?
- use pycompat.bytestr() as this patch does
- use '%s' and add quotes in the output
This is one the failure breaking python3-buildbot.
Comment Actions
- use pycompat.bytestr() as this patch does
- use '%s' and add quotes in the output
I think they can be just "... '%s'" given extension names are unlikely to
contain meta characters.
Can't we just switch to %s?