equal
deleted
inserted
replaced
1 #!/bin/sh |
1 #!/bin/sh |
2 |
2 |
3 cat > echo.py <<EOF |
3 cat > echo.py <<EOF |
4 #!/usr/bin/env python |
4 #!/usr/bin/env python |
5 import os |
5 import os, sys |
|
6 try: |
|
7 import msvcrt |
|
8 msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) |
|
9 msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY) |
|
10 except ImportError: |
|
11 pass |
|
12 |
6 for k in ('HG_FILE', 'HG_MY_ISLINK', 'HG_OTHER_ISLINK', 'HG_BASE_ISLINK'): |
13 for k in ('HG_FILE', 'HG_MY_ISLINK', 'HG_OTHER_ISLINK', 'HG_BASE_ISLINK'): |
7 print k, os.environ[k] |
14 print k, os.environ[k] |
8 EOF |
15 EOF |
9 |
16 |
10 # Create 2 heads containing the same file, once as |
17 # Create 2 heads containing the same file, once as |