Show More
@@ -325,8 +325,8 b' def parsenotesfromrevisions(repo, direct' | |||||
325 | continue |
|
325 | continue | |
326 |
|
326 | |||
327 | if pblock['type'] != 'paragraph': |
|
327 | if pblock['type'] != 'paragraph': | |
328 |
r |
|
328 | repo.ui.warn(_('unexpected block in release notes ' | |
329 | 'directive %s') % directive) |
|
329 | 'directive %s\n') % directive) | |
330 |
|
330 | |||
331 | if pblock['indent'] > 0: |
|
331 | if pblock['indent'] > 0: | |
332 | paragraphs.append(pblock['lines']) |
|
332 | paragraphs.append(pblock['lines']) |
@@ -177,3 +177,26 b' Mixed sub-sections and bullet list' | |||||
177 | paragraph: Bullet item 1 |
|
177 | paragraph: Bullet item 1 | |
178 | bullet point: |
|
178 | bullet point: | |
179 | paragraph: Bullet item 2 |
|
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