Mercurial > hg-stable
changeset 20053:2455e96ec73b
mq: don't add '* * *' separators when there is no commit message
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Sat, 16 Nov 2013 15:46:28 -0500 |
parents | 79d3b6a45351 |
children | d0789ce427ac |
files | hgext/mq.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/mq.py Sat Nov 16 15:46:29 2013 -0500 +++ b/hgext/mq.py Sat Nov 16 15:46:28 2013 -0500 @@ -2565,8 +2565,10 @@ ph = patchheader(q.join(parent), q.plainmode) message, user = ph.message, ph.user for msg in messages: - message.append('* * *') - message.extend(msg) + if msg: + if message: + message.append('* * *') + message.extend(msg) message = '\n'.join(message) if opts.get('edit'):