diff mercurial/patch.py @ 4771:e321f16f4eac

patch.extract: fix test-import breakage introduced in the previous changeset
author Brendan Cully <brendan@kublai.com>
date Mon, 02 Jul 2007 13:26:12 -0700
parents 5ee5cbfceff3
children 4574925db5c0
line wrap: on
line diff
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -91,6 +91,7 @@ def extract(ui, fileobj):
                         # drop earlier commit message content
                         cfp.seek(0)
                         cfp.truncate()
+                        subject = None
                     elif hgpatch:
                         if line.startswith('# User '):
                             user = line[7:]