Mercurial > hg
comparison tests/test-dispatch.py @ 14438:08bfec2ef031
dispatch: wrap dispatch related information in a request class
currently only stores the arguments.
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Thu, 26 May 2011 00:44:11 +0300 |
parents | 3b76321aa0de |
children | 06245740b408 |
comparison
equal
deleted
inserted
replaced
14437:cbe13e6bdc34 | 14438:08bfec2ef031 |
---|---|
5 """Simple wrapper around dispatch.dispatch() | 5 """Simple wrapper around dispatch.dispatch() |
6 | 6 |
7 Prints command and result value, but does not handle quoting. | 7 Prints command and result value, but does not handle quoting. |
8 """ | 8 """ |
9 print "running: %s" % (cmd,) | 9 print "running: %s" % (cmd,) |
10 result = dispatch.dispatch(cmd.split()) | 10 req = dispatch.request(cmd.split()) |
11 result = dispatch.dispatch(req) | |
11 print "result: %r" % (result,) | 12 print "result: %r" % (result,) |
12 | 13 |
13 | 14 |
14 testdispatch("init test1") | 15 testdispatch("init test1") |
15 os.chdir('test1') | 16 os.chdir('test1') |