Show More
@@ -43,7 +43,7 b' create monotone repository' | |||
|
43 | 43 | $ mkdir dir |
|
44 | 44 | $ echo b > dir/b |
|
45 | 45 | $ echo d > dir/d |
|
46 | $ $PYTHON -c 'open("bin", "wb").write(b"a\\x00b")' | |
|
46 | $ $PYTHON -c 'open("bin", "wb").write(b"a\\x00b") and None' | |
|
47 | 47 | $ echo c > c |
|
48 | 48 | $ mtn add a dir/b dir/d c bin |
|
49 | 49 | mtn: adding 'a' to workspace manifest |
@@ -65,7 +65,7 b' update monotone working directory' | |||
|
65 | 65 | $ echo b >> dir/b |
|
66 | 66 | $ mtn drop c |
|
67 | 67 | mtn: dropping 'c' from workspace manifest |
|
68 | $ $PYTHON -c 'open("bin", "wb").write(b"b\\x00c")' | |
|
68 | $ $PYTHON -c 'open("bin", "wb").write(b"b\\x00c") and None' | |
|
69 | 69 | $ mtn ci -m update1 |
|
70 | 70 | mtn: beginning commit on branch 'com.selenic.test' |
|
71 | 71 | mtn: committed revision 51d0a982464573a2a2cf5ee2c9219c652aaebeff |
@@ -218,7 +218,7 b' test diverging directory moves' | |||
|
218 | 218 | test large file support (> 32kB) |
|
219 | 219 | |
|
220 | 220 | >>> fp = open('large-file', 'wb') |
|
221 | >>> for x in range(10000): fp.write(b'%d\n' % x) | |
|
221 | >>> for x in range(10000): fp.write(b'%d\n' % x) and None | |
|
222 | 222 | >>> fp.close() |
|
223 | 223 |
$ |
|
224 | 224 | 5d6de8a95c3b6bf9e0ffb808ba5299c1 large-file |
@@ -57,7 +57,7 b' trailing whitespace' | |||
|
57 | 57 | >>> with open('a', 'rb') as f: |
|
58 | 58 | ... data = f.read() |
|
59 | 59 | >>> with open('a', 'wb') as f: |
|
60 | ... f.write(data.replace(b'dd', b'dd \r')) | |
|
60 | ... f.write(data.replace(b'dd', b'dd \r')) and None | |
|
61 | 61 |
$ |
|
62 | 62 | \x1b[0;1mdiff -r cf9f4ba66af2 a\x1b[0m (esc) |
|
63 | 63 | \x1b[0;31;1m--- a/a\x1b[0m (esc) |
General Comments 0
You need to be logged in to leave comments.
Login now