# HG changeset patch # User Samuel Tardieu # Date 1123359818 -3600 # Node ID 1df0983eb5892c584f5b5f9ef58a304fdfa3ec7d # Parent 73a432c8040ab098f6532171ffce5043bb722be3 Allow HG patch to appear late in the input stream diff -r 73a432c8040a -r 1df0983eb589 mercurial/commands.py --- a/mercurial/commands.py Sat Aug 06 21:19:32 2005 +0100 +++ b/mercurial/commands.py Sat Aug 06 21:23:38 2005 +0100 @@ -740,6 +740,7 @@ hgpatch = False elif line == '# HG changeset patch': hgpatch = True + message = [] # We may have collected garbage else: message.append(line)