tests/test-merge-symlinks.t
changeset 33721 24849d53697d
parent 32940 75be14993fda
child 33967 00658bb0dfd5
equal deleted inserted replaced
33720:27fb986e54d0 33721:24849d53697d
     1   $ cat > echo.py <<EOF
     1   $ cat > echo.py <<EOF
     2   > #!$PYTHON
     2   > #!$PYTHON
       
     3   > from __future__ import print_function
     3   > import os, sys
     4   > import os, sys
     4   > try:
     5   > try:
     5   >     import msvcrt
     6   >     import msvcrt
     6   >     msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
     7   >     msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
     7   >     msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY)
     8   >     msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY)
     8   > except ImportError:
     9   > except ImportError:
     9   >     pass
    10   >     pass
    10   > 
    11   > 
    11   > for k in ('HG_FILE', 'HG_MY_ISLINK', 'HG_OTHER_ISLINK', 'HG_BASE_ISLINK'):
    12   > for k in ('HG_FILE', 'HG_MY_ISLINK', 'HG_OTHER_ISLINK', 'HG_BASE_ISLINK'):
    12   >     print k, os.environ[k]
    13   >     print(k, os.environ[k])
    13   > EOF
    14   > EOF
    14 
    15 
    15 Create 2 heads containing the same file, once as
    16 Create 2 heads containing the same file, once as
    16 a file, once as a link. Bundle was generated with:
    17 a file, once as a link. Bundle was generated with:
    17 
    18