##// END OF EJS Templates
releasenotes: replace abort with warning while parsing (issue5775)...
Rishabh Madan -
r36786:658ed9c7 default
parent child Browse files
Show More
@@ -325,8 +325,8 b' def parsenotesfromrevisions(repo, direct'
325 325 continue
326 326
327 327 if pblock['type'] != 'paragraph':
328 raise error.Abort(_('unexpected block in release notes '
329 'directive %s') % directive)
328 repo.ui.warn(_('unexpected block in release notes '
329 'directive %s\n') % directive)
330 330
331 331 if pblock['indent'] > 0:
332 332 paragraphs.append(pblock['lines'])
@@ -177,3 +177,26 b' Mixed sub-sections and bullet list'
177 177 paragraph: Bullet item 1
178 178 bullet point:
179 179 paragraph: Bullet item 2
180
181 Warn user in case of unexpected block while parsing
182
183 $ hg init relnotes-warn
184 $ cd relnotes-warn
185 $ touch feature1
186 $ hg -q commit -A -l - << EOF
187 > commit 1
188 >
189 > .. feature::
190 >
191 > new feature added.
192 > some words about the feature.
193 > EOF
194
195 $ hg releasenote -r .
196 unexpected block in release notes directive feature
197 New Features
198 ============
199
200 * new feature added. some words about the feature.
201
202 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now