mercurial/commands.py
changeset 852 1df0983eb589
parent 849 8933ef744325
child 871 c2e77581bc84
child 872 9a0af739cf55
child 882 bc9ca4d51d23
child 894 62ec665759f2
child 896 01215ad04283
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -740,6 +740,7 @@ def import_(ui, repo, patch1, *patches, 
                     hgpatch = False
             elif line == '# HG changeset patch':
                 hgpatch = True
+                message = []       # We may have collected garbage
             else:
                 message.append(line)