D2255: releasenotes: replace abort with warning while parsing
rishabhmadan96 (Rishabh Madan)
phabricator at mercurial-scm.org
Wed Feb 14 07:31:15 UTC 2018
rishabhmadan96 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
During the 4.5 development cycle, the extension broke on two different changesets. This change
simply makes sure that it just throws a warning when encounters something instead of an abort
action.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2255
AFFECTED FILES
hgext/releasenotes.py
CHANGE DETAILS
diff --git a/hgext/releasenotes.py b/hgext/releasenotes.py
--- a/hgext/releasenotes.py
+++ b/hgext/releasenotes.py
@@ -325,8 +325,8 @@
continue
if pblock['type'] != 'paragraph':
- raise error.Abort(_('unexpected block in release notes '
- 'directive %s') % directive)
+ repo.ui.warn(_('unexpected block in release notes '
+ 'directive %s\n') % directive)
if pblock['indent'] > 0:
paragraphs.append(pblock['lines'])
To: rishabhmadan96, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list