D7375: py3: replace "%r" by"'%s'% for py3-compatible (and clearer) quoting in chg
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Wed Nov 13 18:07:51 EST 2019
martinvonz added a comment.
In D7375#108431 <https://phab.mercurial-scm.org/D7375#108431>, @durin42 wrote:
> 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.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7375/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7375
To: martinvonz, #hg-reviewers
Cc: durin42, mercurial-devel
More information about the Mercurial-devel
mailing list