mq: make qnew patch format consistent with qrefresh (
issue1457)
--- 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