Show More
@@ -27,6 +27,7 b' def readchannel(server):' | |||
|
27 | 27 | |
|
28 | 28 | def runcommand(server, args, output=sys.stdout, error=sys.stderr, input=None): |
|
29 | 29 | print ' runcommand', ' '.join(args) |
|
30 | sys.stdout.flush() | |
|
30 | 31 | server.stdin.write('runcommand\n') |
|
31 | 32 | writeblock(server, '\0'.join(args)) |
|
32 | 33 | |
@@ -56,6 +57,7 b' def check(func, repopath=None):' | |||
|
56 | 57 | |
|
57 | 58 | print 'testing %s:' % func.__name__ |
|
58 | 59 | |
|
60 | sys.stdout.flush() | |
|
59 | 61 | server = connect(repopath) |
|
60 | 62 | try: |
|
61 | 63 | return func(server) |
@@ -4,10 +4,10 b' testing hellomessage:' | |||
|
4 | 4 | o, 'capabilities: getencoding runcommand\nencoding: ***' |
|
5 | 5 | runcommand id |
|
6 | 6 | 000000000000 tip |
|
7 | abort: unknown command unknowncommand | |
|
8 | 7 | |
|
9 | 8 | testing unknowncommand: |
|
10 | 9 | |
|
10 | abort: unknown command unknowncommand | |
|
11 | 11 | |
|
12 | 12 | testing checkruncommand: |
|
13 | 13 | |
@@ -134,11 +134,11 b' testing setphase:' | |||
|
134 | 134 | 3: draft |
|
135 | 135 | runcommand phase -r . |
|
136 | 136 | 3: public |
|
137 | no phases changed | |
|
138 | 137 | |
|
139 | 138 | testing rollback: |
|
140 | 139 | |
|
141 | 140 | runcommand phase -r . -p |
|
141 | no phases changed | |
|
142 | 142 | runcommand commit -Am. |
|
143 | 143 | runcommand rollback |
|
144 | 144 | repository tip rolled back to revision 3 (undo commit) |
General Comments 0
You need to be logged in to leave comments.
Login now