# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-10-15 15:01:44 # Node ID a542ad320adb4627d4ec4751e9a23aa993b5ac09 # Parent 44bd29168d14e4b7048293c48d713504b78bc6b7 releasenotes: don't abort is there is a bad formatted entry for releasenotes While producing releasenotes for (4.3::), releasenotes aborts with error because of some bad formatting of releasenotes in some commits. Instead of aborting, this adds warning message which will help us in skipping them and telling user about it. Differential Revision: https://phab.mercurial-scm.org/D1097 diff --git a/hgext/releasenotes.py b/hgext/releasenotes.py --- a/hgext/releasenotes.py +++ b/hgext/releasenotes.py @@ -24,6 +24,7 @@ from mercurial import ( config, error, minirst, + node, registrar, scmutil, util, @@ -325,9 +326,8 @@ def parsenotesfromrevisions(repo, direct # TODO consider using title as paragraph for more concise notes. if not paragraphs: - raise error.Abort(_('could not find content for release note ' - '%s') % directive) - + repo.ui.warn(_("error parsing releasenotes for revision: " + "'%s'\n") % node.hex(ctx.node())) if title: notes.addtitleditem(directive, title, paragraphs) else: