tests/test-releasenotes-formatting.t
changeset 34404 159a6f7e09a9
parent 34340 741a511492d3
child 36770 a5891e94bfe1
--- a/tests/test-releasenotes-formatting.t	Sun Oct 01 12:29:33 2017 +0100
+++ b/tests/test-releasenotes-formatting.t	Sun Oct 01 14:37:50 2017 +0100
@@ -434,3 +434,26 @@
   $ hg releasenotes -l -c
   abort: cannot use both '--list' and '--check'
   [255]
+
+Display release notes for specified revs if no file is mentioned
+
+  $ hg init relnotes-nofile
+  $ cd relnotes-nofile
+
+  $ touch fix1
+  $ hg -q commit -A -l - << EOF
+  > commit 1
+  > 
+  > .. fix:: Title of First Fix
+  > 
+  >    First paragraph of fix 1.
+  > EOF
+
+  $ hg releasenote -r .
+  Bug Fixes
+  =========
+  
+  Title of First Fix
+  ------------------
+  
+  First paragraph of fix 1.