changeset 852:1df0983eb589

Allow HG patch to appear late in the input stream
author Samuel Tardieu <sam@rfc1149.net>
date Sat, 06 Aug 2005 21:23:38 +0100
parents 73a432c8040a
children b8ff3f8c4062
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)