Allow HG patch to appear late in the input stream
authorSamuel Tardieu <sam@rfc1149.net>
Sat, 06 Aug 2005 21:23:38 +0100
changeset 852 1df0983eb589
parent 851 73a432c8040a
child 853 b8ff3f8c4062
Allow HG patch to appear late in the input stream
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)