##// 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 577 incoming = parsenotesfromrevisions(repo, sections.names(), revs)
578 578
579 if file_ is None:
580 return ui.write(serializenotes(sections, incoming))
581
579 582 try:
580 583 with open(file_, 'rb') as fh:
581 584 notes = parsereleasenotesfile(sections, fh.read())
@@ -434,3 +434,26 b' Raise error on simultaneous usage of fla'
434 434 $ hg releasenotes -l -c
435 435 abort: cannot use both '--list' and '--check'
436 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