# HG changeset patch # User Benoit Allard # Date 2011-11-29 18:51:35 # 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 --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -1639,7 +1639,7 @@ def difflabel(func, *args, **kw): 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 '+-':