equal
deleted
inserted
replaced
55 |
55 |
56 $ cp a a.orig |
56 $ cp a a.orig |
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 $ hg diff --nodates |
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) |
64 \x1b[0;32;1m+++ b/a\x1b[0m (esc) |
64 \x1b[0;32;1m+++ b/a\x1b[0m (esc) |
65 \x1b[0;35m@@ -2,7 +2,7 @@\x1b[0m (esc) |
65 \x1b[0;35m@@ -2,7 +2,7 @@\x1b[0m (esc) |