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