Submitter | phabricator |
---|---|
Date | Feb. 14, 2018, 7:31 a.m. |
Message ID | <differential-rev-PHID-DREV-elbw46arzlrnqzobdpsy-req@phab.mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/27888/ |
State | Superseded |
Headers | show |
Comments
pulkit added a comment. Can you add tests showing what the new behavior is? The correct behavior should be to include multiple directives in the notes correctly. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2254 To: rishabhmadan96, #hg-reviewers Cc: pulkit, mercurial-devel
Patch
diff --git a/hgext/releasenotes.py b/hgext/releasenotes.py --- a/hgext/releasenotes.py +++ b/hgext/releasenotes.py @@ -324,6 +324,9 @@ if pblock['type'] == 'margin': continue + if pblock['type'] == 'admonition': + break + if pblock['type'] != 'paragraph': repo.ui.warn(_('changeset %s: unexpected block in release ' 'notes directive %s\n') % (node.hex(ctx.node()), directive))