# HG changeset patch # User Samuel Tardieu # Date 2005-08-06 20:23:38 # Node ID 1df0983eb5892c584f5b5f9ef58a304fdfa3ec7d # Parent 73a432c8040ab098f6532171ffce5043bb722be3 Allow HG patch to appear late in the input stream diff --git a/mercurial/commands.py b/mercurial/commands.py --- 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)