diff mercurial/commands.py @ 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 8933ef744325
children c2e77581bc84 9a0af739cf55 bc9ca4d51d23 62ec665759f2 01215ad04283
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)