Show More
@@ -430,6 +430,7 b' test-ssh-clone-r.t' | |||||
430 | test-ssh-proto.t |
|
430 | test-ssh-proto.t | |
431 | test-sshserver.py |
|
431 | test-sshserver.py | |
432 | test-stack.t |
|
432 | test-stack.t | |
|
433 | test-status-inprocess.py | |||
433 | test-status-rev.t |
|
434 | test-status-rev.t | |
434 | test-status-terse.t |
|
435 | test-status-terse.t | |
435 | test-strip-cross.t |
|
436 | test-strip-cross.t |
@@ -1,12 +1,24 b'' | |||||
1 | #!/usr/bin/env python |
|
1 | #!/usr/bin/env python | |
2 | from __future__ import absolute_import, print_function |
|
2 | from __future__ import absolute_import, print_function | |
3 |
|
3 | |||
|
4 | import sys | |||
|
5 | ||||
4 | from mercurial import ( |
|
6 | from mercurial import ( | |
5 | commands, |
|
7 | commands, | |
6 | localrepo, |
|
8 | localrepo, | |
7 | ui as uimod, |
|
9 | ui as uimod, | |
8 | ) |
|
10 | ) | |
9 |
|
11 | |||
|
12 | print_ = print | |||
|
13 | def print(*args, **kwargs): | |||
|
14 | """print() wrapper that flushes stdout buffers to avoid py3 buffer issues | |||
|
15 | ||||
|
16 | We could also just write directly to sys.stdout.buffer the way the | |||
|
17 | ui object will, but this was easier for porting the test. | |||
|
18 | """ | |||
|
19 | print_(*args, **kwargs) | |||
|
20 | sys.stdout.flush() | |||
|
21 | ||||
10 | u = uimod.ui.load() |
|
22 | u = uimod.ui.load() | |
11 |
|
23 | |||
12 | print('% creating repo') |
|
24 | print('% creating repo') |
General Comments 0
You need to be logged in to leave comments.
Login now