##// END OF EJS Templates
releasenotes: mention changeset with warning and abort...
Rishabh Madan -
r36787:3fff6f30 default
parent child Browse files
Show More
@@ -311,8 +311,8 b' def parsenotesfromrevisions(repo, direct'
311 311 title = block['lines'][0].strip() if block['lines'] else None
312 312
313 313 if i + 1 == len(blocks):
314 raise error.Abort(_('release notes directive %s lacks content')
315 % directive)
314 raise error.Abort(_('changeset %s: release notes directive %s '
315 'lacks content') % (ctx, directive))
316 316
317 317 # Now search ahead and find all paragraphs attached to this
318 318 # admonition.
@@ -325,8 +325,8 b' def parsenotesfromrevisions(repo, direct'
325 325 continue
326 326
327 327 if pblock['type'] != 'paragraph':
328 repo.ui.warn(_('unexpected block in release notes '
329 'directive %s\n') % directive)
328 repo.ui.warn(_('changeset %s: unexpected block in release '
329 'notes directive %s\n') % (ctx, directive))
330 330
331 331 if pblock['indent'] > 0:
332 332 paragraphs.append(pblock['lines'])
@@ -193,7 +193,7 b' Warn user in case of unexpected block wh'
193 193 > EOF
194 194
195 195 $ hg releasenote -r .
196 unexpected block in release notes directive feature
196 changeset a4251905c440: unexpected block in release notes directive feature
197 197 New Features
198 198 ============
199 199
General Comments 0
You need to be logged in to leave comments. Login now