diff tests/test-mq.t @ 16291:9952ac7e0968

merge with stable
author Matt Mackall <mpm@selenic.com>
date Tue, 27 Mar 2012 14:37:17 -0500
parents a4413624d014 9518cb55c822
children 73f4e05287b4
line wrap: on
line diff
--- a/tests/test-mq.t	Mon Mar 26 16:42:53 2012 -0500
+++ b/tests/test-mq.t	Tue Mar 27 14:37:17 2012 -0500
@@ -1474,6 +1474,22 @@
   1: secret
   2: secret
 
+Test that qfinish respect phases.new-commit setting
+
+  $ echo '[phases]' >> $HGRCPATH
+  $ echo 'new-commit=secret' >> $HGRCPATH
+  $ hg qfinish qbase
+  patch add-file2 finalized without changeset message
+  $ hg phase 'all()'
+  0: draft
+  1: secret
+  2: secret
+
+(restore env for next test)
+
+  $ sed -i.bak -e 's/new-commit=secret//' $HGRCPATH
+  $ hg qimport -r 1 --name  add-file2
+
 Test that qfinish preserve phase when mq.secret=false
 
   $ sed -i.bak -e 's/secret=true/secret=false/' $HGRCPATH