##// END OF EJS Templates
releasenotes: display release notes when no filename is specified...
Rishabh Madan -
r34405:159a6f7e default
parent child Browse files
Show More
@@ -576,6 +576,9 b' def releasenotes(ui, repo, file_=None, *'
576
576
577 incoming = parsenotesfromrevisions(repo, sections.names(), revs)
577 incoming = parsenotesfromrevisions(repo, sections.names(), revs)
578
578
579 if file_ is None:
580 return ui.write(serializenotes(sections, incoming))
581
579 try:
582 try:
580 with open(file_, 'rb') as fh:
583 with open(file_, 'rb') as fh:
581 notes = parsereleasenotesfile(sections, fh.read())
584 notes = parsereleasenotesfile(sections, fh.read())
@@ -434,3 +434,26 b' Raise error on simultaneous usage of fla'
434 $ hg releasenotes -l -c
434 $ hg releasenotes -l -c
435 abort: cannot use both '--list' and '--check'
435 abort: cannot use both '--list' and '--check'
436 [255]
436 [255]
437
438 Display release notes for specified revs if no file is mentioned
439
440 $ hg init relnotes-nofile
441 $ cd relnotes-nofile
442
443 $ touch fix1
444 $ hg -q commit -A -l - << EOF
445 > commit 1
446 >
447 > .. fix:: Title of First Fix
448 >
449 > First paragraph of fix 1.
450 > EOF
451
452 $ hg releasenote -r .
453 Bug Fixes
454 =========
455
456 Title of First Fix
457 ------------------
458
459 First paragraph of fix 1.
General Comments 0
You need to be logged in to leave comments. Login now