Mercurial > hg
comparison tests/test-annotate.t @ 15829:2c480532f36e
annotate: append newline after non newline-terminated file listings
The last line of a non newline-terminated file would mix with the first line of
the next file in multiple-file listings before this patch.
Possible compatibility issue: no longer possible to tell from the annotate
output if the file is terminated by new line or not.
author | Ion Savin <ion.savin@tora.com> |
---|---|
date | Tue, 10 Jan 2012 10:18:19 +0200 |
parents | a84698badf0b |
children | f2719b387380 |
comparison
equal
deleted
inserted
replaced
15828:4bc715f2a356 | 15829:2c480532f36e |
---|---|
253 | 253 |
254 $ hg ann nosuchfile | 254 $ hg ann nosuchfile |
255 abort: nosuchfile: no such file in rev e9e6b4fa872f | 255 abort: nosuchfile: no such file in rev e9e6b4fa872f |
256 [255] | 256 [255] |
257 | 257 |
258 annotate file without '\n' on last line | |
259 | |
260 $ printf "" > c | |
261 $ hg ci -A -m test -u nobody -d '1 0' | |
262 adding c | |
263 $ hg annotate c | |
264 $ printf "a\nb" > c | |
265 $ hg ci -m test | |
266 $ hg annotate c | |
267 [0-9]+: a (re) | |
268 [0-9]+: b (re) | |
269 | |
258 Test annotate with whitespace options | 270 Test annotate with whitespace options |
259 | 271 |
260 $ cd .. | 272 $ cd .. |
261 $ hg init repo-ws | 273 $ hg init repo-ws |
262 $ cd repo-ws | 274 $ cd repo-ws |