Debian Codegraph @

tests/test-diff-newlines.t

raw
1 $ hg init repo
2 $ cd repo
3
4 $ "$PYTHON" -c 'open("a", "wb").write(b"confuse str.splitlines\nembedded\rnewline\n")'
5 $ hg ci -Ama -d '1 0'
6 adding a
7
8 $ echo clean diff >> a
9 $ hg ci -mb -d '2 0'
10
11 $ hg diff -r0 -r1
12 diff -r 107ba6f817b5 -r 310ce7989cdc a
13 --- a/a Thu Jan 01 00:00:01 1970 +0000
14 +++ b/a Thu Jan 01 00:00:02 1970 +0000
15 @@ -1,2 +1,3 @@
16 confuse str.splitlines
17 embedded\r (no-eol) (esc)
18 newline
19 +clean diff
20