##// END OF EJS Templates
patch: don't separate \r and \n when colorizing diff output...
patch: don't separate \r and \n when colorizing diff output When displaying diffs, \r at the end of a line is treated as trailing whitespace. This causes an ANSI escape code to be inserted between \r and \n. Some programs, such as less since version 530 (maybe earlier, but at least not version 487) displays ^M when it encounters a lone \r. This causes a lot of noise in diff output on Windows, where \r\n is used to terminate lines. We avoid that by treating both \n and \r\n as end of line when considering trailing whitespace.

File last commit:

r31755:ec48d57d default
r38649:e1987261 default
Show More
test-revlog-raw.py.out
4 lines | 86 B | text/plain | TextLexer
/ tests / test-revlog-raw.py.out
Jun Wu
revlog: use raw content when building delta...
r31752 local test passed
Jun Wu
revlog: use raw revisions in revdiff...
r31753 addgroupcopy test passed
Jun Wu
revlog: use raw revisions in clone...
r31754 clone test passed
Jun Wu
revlog: make _addrevision only accept rawtext...
r31755 lowlevelcopy test passed