From patchwork Wed Jun 27 13:06:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3843: tests: fix up some lax escaping in test-template-basic.t From: phabricator X-Patchwork-Id: 32460 Message-Id: <84c8389097ba410ba84030e2d4b132fc@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Wed, 27 Jun 2018 13:06:14 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGb4cfd803b3f2: tests: fix up some lax escaping in test-template-basic.t (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3843?vs=9310&id=9322 REVISION DETAIL https://phab.mercurial-scm.org/D3843 AFFECTED FILES tests/test-template-basic.t CHANGE DETAILS To: durin42, #hg-reviewers Cc: mercurial-devel diff --git a/tests/test-template-basic.t b/tests/test-template-basic.t --- a/tests/test-template-basic.t +++ b/tests/test-template-basic.t @@ -835,11 +835,11 @@ -o perso- $ hg log -R a -r 2 --template '{sub(r"\\x6e", "-", desc)}\n' no person - $ hg log -R a -r 2 --template '{sub("n", r"\x2d", desc)}\n' + $ hg log -R a -r 2 --template '{sub("n", r"\\x2d", desc)}\n' \x2do perso\x2d $ hg log -R a -r 2 --template '{sub("n", "\x2d", "no perso\x6e")}\n' -o perso- - $ hg log -R a -r 2 --template '{sub("n", r"\x2d", r"no perso\x6e")}\n' + $ hg log -R a -r 2 --template '{sub("n", r"\\x2d", r"no perso\x6e")}\n' \x2do perso\x6e $ hg log -R a -r 8 --template '{files % "{file}\n"}'