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 '+-':