hgext/releasenotes.py
changeset 36778 a5891e94bfe1
parent 36777 3fff6f30bd7f
child 40234 3fc2ef49959c
equal deleted inserted replaced
36777:3fff6f30bd7f 36778:a5891e94bfe1
   321                 pblock = blocks[j]
   321                 pblock = blocks[j]
   322 
   322 
   323                 # Margin blocks may appear between paragraphs. Ignore them.
   323                 # Margin blocks may appear between paragraphs. Ignore them.
   324                 if pblock['type'] == 'margin':
   324                 if pblock['type'] == 'margin':
   325                     continue
   325                     continue
       
   326 
       
   327                 if pblock['type'] == 'admonition':
       
   328                     break
   326 
   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))
   330 
   333