tests/test-bundle2.t
branchstable
changeset 21956 93b804fced5a
parent 21941 dab31290c7eb
child 21964 ef555e456420
equal deleted inserted replaced
21955:6dfb78f18bdb 21956:93b804fced5a
     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
       
    18   > 
    10   > 
    19   > import sys
    11   > import sys
    20   > from mercurial import cmdutil
    12   > from mercurial import cmdutil
    21   > from mercurial import util
    13   > from mercurial import util
    22   > from mercurial import bundle2
    14   > from mercurial import bundle2
    23   > from mercurial import scmutil
    15   > from mercurial import scmutil
    24   > from mercurial import discovery
    16   > from mercurial import discovery
    25   > from mercurial import changegroup
    17   > from mercurial import changegroup
    26   > from mercurial import error
    18   > from mercurial import error
       
    19   > 
       
    20   > try:
       
    21   >     import msvcrt
       
    22   >     msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY)
       
    23   >     msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
       
    24   >     msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY)
       
    25   > except ImportError:
       
    26   >     pass
       
    27   > 
    27   > cmdtable = {}
    28   > cmdtable = {}
    28   > command = cmdutil.command(cmdtable)
    29   > command = cmdutil.command(cmdtable)
    29   > 
    30   > 
    30   > ELEPHANTSSONG = """Patali Dirapata, Cromda Cromda Ripalo, Pata Pata, Ko Ko Ko
    31   > ELEPHANTSSONG = """Patali Dirapata, Cromda Cromda Ripalo, Pata Pata, Ko Ko Ko
    31   > Bokoro Dipoulito, Rondi Rondi Pepino, Pata Pata, Ko Ko Ko
    32   > Bokoro Dipoulito, Rondi Rondi Pepino, Pata Pata, Ko Ko Ko