# HG changeset patch # User Benoit Allard # Date 1322592695 -3600 # Node ID 3da1f60fc80d9fca9c32ffd6972bd865b7cb01c6 # Parent 6c5e6ebe08128c91ee3f6d1119bc3ce3ba836837 diff: '\ No newline at end of file' is also not part of the header Diff containing '\ No newline at end of file' were colorized incorrectly. diff -r 6c5e6ebe0812 -r 3da1f60fc80d mercurial/patch.py --- a/mercurial/patch.py Thu Nov 24 17:54:50 2011 +0900 +++ b/mercurial/patch.py Tue Nov 29 19:51:35 2011 +0100 @@ -1639,7 +1639,7 @@ if line.startswith('@'): head = False else: - if line and not line[0] in ' +-@': + if line and not line[0] in ' +-@\\': head = True stripline = line if not head and line and line[0] in '+-':