##// END OF EJS Templates
py3: mark all string literals in test-command-template.t as bytes...
Yuya Nishihara -
r36566:086fc71f default
parent child Browse files
Show More
@@ -7,12 +7,12 b' from mercurial import ('
7 )
7 )
8
8
9 def reposetup(ui, repo):
9 def reposetup(ui, repo):
10 names = {'r%d' % rev: repo[rev].node() for rev in repo}
10 names = {b'r%d' % rev: repo[rev].node() for rev in repo}
11 namemap = lambda r, name: names.get(name)
11 namemap = lambda r, name: names.get(name)
12 nodemap = lambda r, node: ['r%d' % repo[node].rev()]
12 nodemap = lambda r, node: [b'r%d' % repo[node].rev()]
13
13
14 ns = namespaces.namespace('revnames', templatename='revname',
14 ns = namespaces.namespace(b'revnames', templatename=b'revname',
15 logname='revname',
15 logname=b'revname',
16 listnames=lambda r: names.keys(),
16 listnames=lambda r: names.keys(),
17 namemap=namemap, nodemap=nodemap)
17 namemap=namemap, nodemap=nodemap)
18 repo.names.addnamespace(ns)
18 repo.names.addnamespace(ns)
@@ -4622,9 +4622,9 b' Test that template function in extension'
4622 >
4622 >
4623 > templatefunc = registrar.templatefunc()
4623 > templatefunc = registrar.templatefunc()
4624 >
4624 >
4625 > @templatefunc('custom()')
4625 > @templatefunc(b'custom()')
4626 > def custom(context, mapping, args):
4626 > def custom(context, mapping, args):
4627 > return 'custom'
4627 > return b'custom'
4628 > EOF
4628 > EOF
4629 $ cat <<EOF > .hg/hgrc
4629 $ cat <<EOF > .hg/hgrc
4630 > [extensions]
4630 > [extensions]
General Comments 0
You need to be logged in to leave comments. Login now