D2436: tests: add missing b prefixes in test-commit.t
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Mon Feb 26 00:39:00 EST 2018
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
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 <<EOF
> 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 <<EOF
> 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 <<EOF
> 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
To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list