diff tests/test-releasenotes-merging.t @ 32779:2510823ca0df

releasenotes: add more tests for formatting and merging of release notes
author Rishabh Madan <rishabhmadan96@gmail.com>
date Sun, 04 Jun 2017 00:16:45 +0200
parents 91e355a0408b
children 5814db57941c
line wrap: on
line diff
--- a/tests/test-releasenotes-merging.t	Fri Jun 02 23:33:30 2017 +0200
+++ b/tests/test-releasenotes-merging.t	Sun Jun 04 00:16:45 2017 +0200
@@ -110,3 +110,54 @@
   This describes a feature from a commit message.
 
   $ cd ..
+
+Bullets don't merge properly
+
+  $ hg init bullets
+  $ cd bullets
+  $ touch fix1
+  $ hg -q commit -A -l - << EOF
+  > commit 1
+  > 
+  > .. fix::
+  > 
+  >    this is fix1.
+  > EOF
+
+  $ touch fix2
+  $ hg -q commit -A -l - << EOF
+  > commit 2
+  > 
+  > .. fix::
+  > 
+  >    this is fix2.
+  > EOF
+
+  $ hg releasenotes -r 'all()' $TESTTMP/relnotes-bullet-problem
+  $ cat $TESTTMP/relnotes-bullet-problem
+  Bug Fixes
+  =========
+  
+  * this is fix1.
+  
+  * this is fix2.
+  $ touch fix3
+  $ hg -q commit -A -l - << EOF
+  > commit 3
+  > 
+  > .. fix::
+  > 
+  >    this is fix3.
+  > EOF
+
+  $ hg releasenotes -r . $TESTTMP/relnotes-bullet-problem
+  $ cat $TESTTMP/relnotes-bullet-problem
+  Bug Fixes
+  =========
+  
+  * this is fix1.
+  
+    this is fix2.
+  
+  * this is fix3.
+