diff -r 43d55088415a -r 67964cda8701 mercurial/patch.py --- a/mercurial/patch.py Sat May 12 16:00:53 2012 +0200 +++ b/mercurial/patch.py Sat May 12 16:00:57 2012 +0200 @@ -1659,7 +1659,7 @@ if line.startswith('@'): head = False else: - if line and not line[0] in ' +-@\\': + if line and line[0] not in ' +-@\\': head = True stripline = line if not head and line and line[0] in '+-':