Show More
@@ -54,8 +54,10 b' default context' | |||||
54 | trailing whitespace |
|
54 | trailing whitespace | |
55 |
|
55 | |||
56 | $ cp a a.orig |
|
56 | $ cp a a.orig | |
57 | $ sed 's/^dd$/dd \r/' a >a.new |
|
57 | >>> with open('a', 'rb') as f: | |
58 | $ mv a.new a |
|
58 | ... data = f.read() | |
|
59 | >>> with open('a', 'wb') as f: | |||
|
60 | ... f.write(data.replace('dd', 'dd \r')) | |||
59 | $ hg diff --nodates |
|
61 | $ hg diff --nodates | |
60 | \x1b[0;1mdiff -r cf9f4ba66af2 a\x1b[0m (esc) |
|
62 | \x1b[0;1mdiff -r cf9f4ba66af2 a\x1b[0m (esc) | |
61 | \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