Patchwork D3637: py3: add b'' prefixes in tests/test-revset2.t

login
register
mail settings
Submitter phabricator
Date May 22, 2018, 11:14 a.m.
Message ID <d2394990ec258891a1074c97c801d70e@localhost.localdomain>
Download mbox | patch
Permalink /patch/31808/
State Not Applicable
Headers show

Comments

phabricator - May 22, 2018, 11:14 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGdbea87a2d7e8: py3: add b&#039;&#039; prefixes in tests/test-revset2.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3637?vs=8845&id=8866

REVISION DETAIL
  https://phab.mercurial-scm.org/D3637

AFFECTED FILES
  tests/test-revset2.t

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-revset2.t b/tests/test-revset2.t
--- a/tests/test-revset2.t
+++ b/tests/test-revset2.t
@@ -1589,11 +1589,11 @@ 
   > 
   > revsetpredicate = registrar.revsetpredicate()
   > 
-  > @revsetpredicate('custom1()')
+  > @revsetpredicate(b'custom1()')
   > def custom1(repo, subset, x):
   >     return revset.baseset([1])
   > 
-  > raise error.Abort('intentional failure of loading extension')
+  > raise error.Abort(b'intentional failure of loading extension')
   > EOF
   $ cat <<EOF > .hg/hgrc
   > [extensions]
@@ -1611,14 +1611,14 @@ 
   > from mercurial import encoding, registrar
   > cmdtable = {}
   > command = registrar.command(cmdtable)
-  > @command('printprevset')
+  > @command(b'printprevset')
   > def printprevset(ui, repo):
   >     alias = {}
-  >     p = encoding.environ.get('P')
+  >     p = encoding.environ.get(b'P')
   >     if p:
-  >         alias['P'] = p
-  >     revs = repo.anyrevs(['P'], user=True, localalias=alias)
-  >     ui.write('P=%r\n' % list(revs))
+  >         alias[b'P'] = p
+  >     revs = repo.anyrevs([b'P'], user=True, localalias=alias)
+  >     ui.write(b'P=%r\n' % list(revs))
   > EOF
 
   $ cat >> .hg/hgrc <<EOF