equal
deleted
inserted
replaced
5 > """A small extension to test bundle2 implementation |
5 > """A small extension to test bundle2 implementation |
6 > |
6 > |
7 > Current bundle2 implementation is far too limited to be used in any core |
7 > Current bundle2 implementation is far too limited to be used in any core |
8 > code. We still need to be able to test it while it grow up. |
8 > code. We still need to be able to test it while it grow up. |
9 > """ |
9 > """ |
|
10 > |
|
11 > try: |
|
12 > import msvcrt |
|
13 > msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY) |
|
14 > msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) |
|
15 > msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY) |
|
16 > except ImportError: |
|
17 > pass |
10 > |
18 > |
11 > import sys |
19 > import sys |
12 > from mercurial import cmdutil |
20 > from mercurial import cmdutil |
13 > from mercurial import util |
21 > from mercurial import util |
14 > from mercurial import bundle2 |
22 > from mercurial import bundle2 |