Show More
@@ -548,12 +548,12 b' environment variable changes in alias co' | |||
|
548 | 548 | > from mercurial import cmdutil, commands, registrar |
|
549 | 549 | > cmdtable = {} |
|
550 | 550 | > command = registrar.command(cmdtable) |
|
551 | > @command('expandalias') | |
|
551 | > @command(b'expandalias') | |
|
552 | 552 | > def expandalias(ui, repo, name): |
|
553 | 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 | 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 | 557 | > EOF |
|
558 | 558 | |
|
559 | 559 | $ cat >> $HGRCPATH <<'EOF' |
General Comments 0
You need to be logged in to leave comments.
Login now