##// END OF EJS Templates
py3: add b'' prefixes in tests/test-revset2.t...
Pulkit Goyal -
r38137:6ef01102 default
parent child Browse files
Show More
@@ -1589,11 +1589,11 b' loading it'
1589 >
1589 >
1590 > revsetpredicate = registrar.revsetpredicate()
1590 > revsetpredicate = registrar.revsetpredicate()
1591 >
1591 >
1592 > @revsetpredicate('custom1()')
1592 > @revsetpredicate(b'custom1()')
1593 > def custom1(repo, subset, x):
1593 > def custom1(repo, subset, x):
1594 > return revset.baseset([1])
1594 > return revset.baseset([1])
1595 >
1595 >
1596 > raise error.Abort('intentional failure of loading extension')
1596 > raise error.Abort(b'intentional failure of loading extension')
1597 > EOF
1597 > EOF
1598 $ cat <<EOF > .hg/hgrc
1598 $ cat <<EOF > .hg/hgrc
1599 > [extensions]
1599 > [extensions]
@@ -1611,14 +1611,14 b' Test repo.anyrevs with customized revset'
1611 > from mercurial import encoding, registrar
1611 > from mercurial import encoding, registrar
1612 > cmdtable = {}
1612 > cmdtable = {}
1613 > command = registrar.command(cmdtable)
1613 > command = registrar.command(cmdtable)
1614 > @command('printprevset')
1614 > @command(b'printprevset')
1615 > def printprevset(ui, repo):
1615 > def printprevset(ui, repo):
1616 > alias = {}
1616 > alias = {}
1617 > p = encoding.environ.get('P')
1617 > p = encoding.environ.get(b'P')
1618 > if p:
1618 > if p:
1619 > alias['P'] = p
1619 > alias[b'P'] = p
1620 > revs = repo.anyrevs(['P'], user=True, localalias=alias)
1620 > revs = repo.anyrevs([b'P'], user=True, localalias=alias)
1621 > ui.write('P=%r\n' % list(revs))
1621 > ui.write(b'P=%r\n' % list(revs))
1622 > EOF
1622 > EOF
1623
1623
1624 $ cat >> .hg/hgrc <<EOF
1624 $ cat >> .hg/hgrc <<EOF
General Comments 0
You need to be logged in to leave comments. Login now