Mercurial > hg
diff tests/test-commandserver.py @ 21773:26d2fb899637
tests: define norepo in command decorator
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 04 May 2014 22:07:45 -0700 |
parents | 9336bc7dca8e |
children | 68f2f8bfe9ae |
line wrap: on
line diff
--- a/tests/test-commandserver.py Sun May 04 22:03:11 2014 -0700 +++ b/tests/test-commandserver.py Sun May 04 22:07:45 2014 -0700 @@ -341,10 +341,9 @@ check(mqoutsidechanges) dbg = open('dbgui.py', 'w') dbg.write('from mercurial import cmdutil, commands\n' - 'commands.norepo += " debuggetpass"\n' 'cmdtable = {}\n' 'command = cmdutil.command(cmdtable)\n' - '@command("debuggetpass")\n' + '@command("debuggetpass", norepo=True)\n' 'def debuggetpass(ui):\n' ' ui.write("%s\\n" % ui.getpass())\n') dbg.close()