##// END OF EJS Templates
releasenotes: allow notes for multiple directives in a single changeset...
Rishabh Madan -
r36788:a5891e94 default
parent child Browse files
Show More
@@ -324,6 +324,9 b' def parsenotesfromrevisions(repo, direct'
324 if pblock['type'] == 'margin':
324 if pblock['type'] == 'margin':
325 continue
325 continue
326
326
327 if pblock['type'] == 'admonition':
328 break
329
327 if pblock['type'] != 'paragraph':
330 if pblock['type'] != 'paragraph':
328 repo.ui.warn(_('changeset %s: unexpected block in release '
331 repo.ui.warn(_('changeset %s: unexpected block in release '
329 'notes directive %s\n') % (ctx, directive))
332 'notes directive %s\n') % (ctx, directive))
@@ -457,3 +457,35 b' Display release notes for specified revs'
457 ------------------
457 ------------------
458
458
459 First paragraph of fix 1.
459 First paragraph of fix 1.
460
461 $ cd ..
462
463 Using multiple admonitions in same changeset
464
465 $ hg init relnotes-multiadmon
466 $ cd relnotes-multiadmon
467
468 $ touch file1
469 $ hg -q commit -A -l - << EOF
470 > commit 1
471 >
472 > .. feature::
473 >
474 > Details about new feature.
475 >
476 > .. perf::
477 >
478 > Improves the execution by 2x
479 > EOF
480
481 $ hg releasenotes -r . $TESTTMP/relnotes-multiple-admonitions
482 $ cat $TESTTMP/relnotes-multiple-admonitions
483 New Features
484 ============
485
486 * Details about new feature.
487
488 Performance Improvements
489 ========================
490
491 * Improves the execution by 2x
General Comments 0
You need to be logged in to leave comments. Login now