Show More
@@ -51,7 +51,10 b' def runcommand(server, args, output=sys.' | |||||
51 | elif ch == 'L': |
|
51 | elif ch == 'L': | |
52 | writeblock(server, input.readline(data)) |
|
52 | writeblock(server, input.readline(data)) | |
53 | elif ch == 'r': |
|
53 | elif ch == 'r': | |
54 |
ret |
|
54 | ret, = struct.unpack('>i', data) | |
|
55 | if ret != 0: | |||
|
56 | print ' [%d]' % ret | |||
|
57 | return ret | |||
55 | else: |
|
58 | else: | |
56 | print "unexpected channel %c: %r" % (ch, data) |
|
59 | print "unexpected channel %c: %r" % (ch, data) | |
57 | if ch.isupper(): |
|
60 | if ch.isupper(): |
@@ -142,6 +142,7 b' testing rollback:' | |||||
142 |
|
142 | |||
143 | runcommand phase -r . -p |
|
143 | runcommand phase -r . -p | |
144 | no phases changed |
|
144 | no phases changed | |
|
145 | [1] | |||
145 | runcommand commit -Am. |
|
146 | runcommand commit -Am. | |
146 | runcommand rollback |
|
147 | runcommand rollback | |
147 | repository tip rolled back to revision 3 (undo commit) |
|
148 | repository tip rolled back to revision 3 (undo commit) |
General Comments 0
You need to be logged in to leave comments.
Login now