equal
deleted
inserted
replaced
912 > stdout = getattr(sys.stdout, 'buffer', sys.stdout) |
912 > stdout = getattr(sys.stdout, 'buffer', sys.stdout) |
913 > stdout.write(stdin.read().replace(b'\r', b'[CR]')) |
913 > stdout.write(stdin.read().replace(b'\r', b'[CR]')) |
914 > EOF |
914 > EOF |
915 |
915 |
916 >>> with open('a', 'wb') as f: |
916 >>> with open('a', 'wb') as f: |
917 ... f.write(b'0a\r0b\r\n0c\r0d\r\n0e\n0f\n0g') |
917 ... f.write(b'0a\r0b\r\n0c\r0d\r\n0e\n0f\n0g') and None |
918 $ hg ci -qAm0 |
918 $ hg ci -qAm0 |
919 >>> with open('a', 'wb') as f: |
919 >>> with open('a', 'wb') as f: |
920 ... f.write(b'0a\r0b\r\n1c\r1d\r\n0e\n1f\n0g') |
920 ... f.write(b'0a\r0b\r\n1c\r1d\r\n0e\n1f\n0g') and None |
921 $ hg ci -m1 |
921 $ hg ci -m1 |
922 |
922 |
923 $ hg annotate -r0 a | $PYTHON "$TESTTMP/substcr.py" |
923 $ hg annotate -r0 a | $PYTHON "$TESTTMP/substcr.py" |
924 0: 0a[CR]0b[CR] |
924 0: 0a[CR]0b[CR] |
925 0: 0c[CR]0d[CR] |
925 0: 0c[CR]0d[CR] |