##// END OF EJS Templates
py3: add b'' prefixes in test-alias.t...
Pulkit Goyal -
r36398:2bff5f05 default
parent child Browse files
Show More
@@ -548,12 +548,12 b' environment variable changes in alias co'
548 > from mercurial import cmdutil, commands, registrar
548 > from mercurial import cmdutil, commands, registrar
549 > cmdtable = {}
549 > cmdtable = {}
550 > command = registrar.command(cmdtable)
550 > command = registrar.command(cmdtable)
551 > @command('expandalias')
551 > @command(b'expandalias')
552 > def expandalias(ui, repo, name):
552 > def expandalias(ui, repo, name):
553 > alias = cmdutil.findcmd(name, commands.table)[1][0]
553 > alias = cmdutil.findcmd(name, commands.table)[1][0]
554 > ui.write('%s args: %s\n' % (name, ' '.join(alias.args)))
554 > ui.write(b'%s args: %s\n' % (name, b' '.join(alias.args)))
555 > os.environ['COUNT'] = '2'
555 > os.environ['COUNT'] = '2'
556 > ui.write('%s args: %s (with COUNT=2)\n' % (name, ' '.join(alias.args)))
556 > ui.write(b'%s args: %s (with COUNT=2)\n' % (name, b' '.join(alias.args)))
557 > EOF
557 > EOF
558
558
559 $ cat >> $HGRCPATH <<'EOF'
559 $ cat >> $HGRCPATH <<'EOF'
General Comments 0
You need to be logged in to leave comments. Login now