Show More
@@ -5,7 +5,7 b' Setup:' | |||||
5 | > from mercurial import commands, context, registrar |
|
5 | > from mercurial import commands, context, registrar | |
6 | > cmdtable = {} |
|
6 | > cmdtable = {} | |
7 | > command = registrar.command(cmdtable) |
|
7 | > command = registrar.command(cmdtable) | |
8 | > @command(b'eval', [], 'hg eval CMD') |
|
8 | > @command(b'eval', [], b'hg eval CMD') | |
9 | > def eval_(ui, repo, *cmds, **opts): |
|
9 | > def eval_(ui, repo, *cmds, **opts): | |
10 | > cmd = b" ".join(cmds) |
|
10 | > cmd = b" ".join(cmds) | |
11 | > res = str(eval(cmd, globals(), locals())) |
|
11 | > res = str(eval(cmd, globals(), locals())) |
General Comments 0
You need to be logged in to leave comments.
Login now