[PATCH] mq: readheaders should clear inferred message text if HG patch is found
David Shilvock
davels at telus.net
Mon Dec 8 23:45:58 CST 2008
# HG changeset patch
# User David Shilvock <davels at telus.net>
# Date 1228795907 28800
# Node ID 62ba3bce7e6ea592f7fc92ef3ea13a7e2d4de2bb
# Parent d842ab7897422423115661fa19f5ea4a86ec7fa9
mq: readheaders should clear inferred message text if HG patch is found
This mirrors the bahaviour of patch.extract
diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -342,6 +342,7 @@ class queue:
message.append(line)
format = None
elif line == '# HG changeset patch':
+ message = []
format = "hgpatch"
elif (format != "tagdone" and (line.startswith("Subject: ") or
line.startswith("subject: "))):
More information about the Mercurial-devel
mailing list