changeset 7614:f9fcb189c8e2

mq: make qnew patch format consistent with qrefresh (issue1457)
author Bernhard Leiner <bleiner@gmail.com>
date Mon, 12 Jan 2009 09:12:35 +0100
parents bcbe8446bf2b
children e9da3de01e0a a679bd371091
files hgext/mq.py tests/test-mq-header-date.out tests/test-mq-header-from.out tests/test-mq-qnew.out
diffstat 4 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Sat Jan 10 00:30:22 2009 +0100
+++ b/hgext/mq.py	Mon Jan 12 09:12:35 2009 +0100
@@ -756,7 +756,7 @@
                     self.series_dirty = 1
                     self.applied_dirty = 1
                     if msg:
-                        msg = msg + "\n"
+                        msg = msg + "\n\n"
                         p.write(msg)
                     if commitfiles:
                         diffopts = self.diffopts()
--- a/tests/test-mq-header-date.out	Sat Jan 10 00:30:22 2009 +0100
+++ b/tests/test-mq-header-date.out	Mon Jan 12 09:12:35 2009 +0100
@@ -48,6 +48,7 @@
 # Date 6 0
 
 Three
+
 1: Three - test - 6.00
 0: [mq]: 1.patch - test - 4.00
 ==== qref
--- a/tests/test-mq-header-from.out	Sat Jan 10 00:30:22 2009 +0100
+++ b/tests/test-mq-header-from.out	Mon Jan 12 09:12:35 2009 +0100
@@ -46,6 +46,7 @@
 From: test
 
 Three
+
 2: Three - test
 1: [mq]: 2.patch - jane
 0: [mq]: 1.patch - mary
--- a/tests/test-mq-qnew.out	Sat Jan 10 00:30:22 2009 +0100
+++ b/tests/test-mq-qnew.out	Mon Jan 12 09:12:35 2009 +0100
@@ -15,6 +15,7 @@
 abort: missing: No such file or directory
 % qnew -m
 foo bar
+
 % qnew twice
 abort: patch "first.patch" already exists
 abort: patch "first.patch" already exists