From patchwork Mon Feb 26 05:39:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2436: tests: add missing b prefixes in test-commit.t From: phabricator X-Patchwork-Id: 28371 Message-Id: <0f7608a25e4ae9ae6526abc29a91ba23@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Mon, 26 Feb 2018 05:39:00 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGa39126a40be6: tests: add missing b prefixes in test-commit.t (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2436?vs=6081&id=6094 REVISION DETAIL https://phab.mercurial-scm.org/D2436 AFFECTED FILES tests/test-commit.t CHANGE DETAILS To: durin42, #hg-reviewers, indygreg Cc: mercurial-devel diff --git a/tests/test-commit.t b/tests/test-commit.t --- a/tests/test-commit.t +++ b/tests/test-commit.t @@ -644,14 +644,14 @@ $ cat > evil-commit.py < from __future__ import absolute_import > from mercurial import context, hg, node, ui as uimod - > notrc = u".h\u200cg".encode('utf-8') + '/hgrc' + > notrc = u".h\u200cg".encode('utf-8') + b'/hgrc' > u = uimod.ui.load() - > r = hg.repository(u, '.') + > r = hg.repository(u, b'.') > def filectxfn(repo, memctx, path): > return context.memfilectx(repo, memctx, path, - > '[hooks]\nupdate = echo owned') - > c = context.memctx(r, [r['tip'].node(), node.nullid], - > 'evil', [notrc], filectxfn, 0) + > b'[hooks]\nupdate = echo owned') + > c = context.memctx(r, [r[b'tip'].node(), node.nullid], + > b'evil', [notrc], filectxfn, 0) > r.commitctx(c) > EOF $ $PYTHON evil-commit.py @@ -670,14 +670,14 @@ $ cat > evil-commit.py < from __future__ import absolute_import > from mercurial import context, hg, node, ui as uimod - > notrc = "HG~1/hgrc" + > notrc = b"HG~1/hgrc" > u = uimod.ui.load() - > r = hg.repository(u, '.') + > r = hg.repository(u, b'.') > def filectxfn(repo, memctx, path): > return context.memfilectx(repo, memctx, path, - > '[hooks]\nupdate = echo owned') - > c = context.memctx(r, [r['tip'].node(), node.nullid], - > 'evil', [notrc], filectxfn, 0) + > b'[hooks]\nupdate = echo owned') + > c = context.memctx(r, [r[b'tip'].node(), node.nullid], + > b'evil', [notrc], filectxfn, 0) > r.commitctx(c) > EOF $ $PYTHON evil-commit.py @@ -690,14 +690,14 @@ $ cat > evil-commit.py < from __future__ import absolute_import > from mercurial import context, hg, node, ui as uimod - > notrc = "HG8B6C~2/hgrc" + > notrc = b"HG8B6C~2/hgrc" > u = uimod.ui.load() - > r = hg.repository(u, '.') + > r = hg.repository(u, b'.') > def filectxfn(repo, memctx, path): > return context.memfilectx(repo, memctx, path, - > '[hooks]\nupdate = echo owned') - > c = context.memctx(r, [r['tip'].node(), node.nullid], - > 'evil', [notrc], filectxfn, 0) + > b'[hooks]\nupdate = echo owned') + > c = context.memctx(r, [r[b'tip'].node(), node.nullid], + > b'evil', [notrc], filectxfn, 0) > r.commitctx(c) > EOF $ $PYTHON evil-commit.py