This is an archive of the discontinued Mercurial Phabricator instance.

py3: replace "%r" by"'%s'% for py3-compatible (and clearer) quoting in chg
ClosedPublic

Authored by martinvonz on Nov 13 2019, 1:28 PM.

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.Nov 13 2019, 1:28 PM

I feel obligated to point out that this will result in different (wrong!) quoting if path contains a ', but that's also probably fine since it's just a log.

I feel obligated to point out that this will result in different (wrong!) quoting if path contains a ', but that's also probably fine since it's just a log.

Oh, good to know! I had no idea that %r does escaping too.

This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.