D3637: py3: add b'' prefixes in tests/test-revset2.t
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sun May 20 13:40:13 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
1. skip-blame because just b'' prefixes
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3637
AFFECTED FILES
tests/test-revset2.t
CHANGE DETAILS
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
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list