Mercurial > hg
diff hgext/mq.py @ 23346:5ccced6eab0b stable
mq: when adding headers in plain mode, separate them from message (issue4453)
c87f2a5a6e49 did a clean-up in one direction ... but we want it in the other
direction.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 17 Nov 2014 01:48:43 +0100 |
parents | 83cbf556babf |
children | 94092019e839 |
line wrap: on
line diff
--- a/hgext/mq.py Mon Nov 17 01:48:19 2014 +0100 +++ b/hgext/mq.py Mon Nov 17 01:48:43 2014 +0100 @@ -151,6 +151,8 @@ return lines def insertplainheader(lines, header, value): + if lines and lines[0] and ':' not in lines[0]: + lines.insert(0, '') lines.insert(0, '%s: %s' % (header, value)) return lines