Mercurial > public > mercurial-scm > hg-stable
diff hgext/mq.py @ 9287:53fdf18fd63b
mq: Parse commit message after we find start of changeset patch
patch.extract extracts just the message below HG changeset patch. So to not
parse comments above the patch, we reset the message if we find a changeset
patch as we know the commit message comes after the changeset patch data.
This is similar to the behavior of patch.extract.
The drawback of this approach, after a qref -e the comment above HG changeset
patch is gone. Without this patch the message would become part of the commit
message in the HG changset patch part.
author | David Soria Parra <dsp@php.net> |
---|---|
date | Tue, 28 Jul 2009 15:36:28 +0200 |
parents | aa0fe57d4abe |
children | e668bcd0e25f 74e717a21779 a9d1e7c8160e |
line wrap: on
line diff
--- a/hgext/mq.py Wed Jul 29 22:14:46 2009 +0200 +++ b/hgext/mq.py Tue Jul 28 15:36:28 2009 +0200 @@ -105,6 +105,7 @@ message.append(line) format = None elif line == '# HG changeset patch': + message = [] format = "hgpatch" elif (format != "tagdone" and (line.startswith("Subject: ") or line.startswith("subject: "))):