# HG changeset patch # User Gregory Szorc # Date 1490843118 25200 # Node ID 32a563a01da45b547b9a999b0af3f735a636f790 # Parent b3640334a43a4eb27311aa634917e1f1fabd469d minirst: remove "admonition" from _admonitions The "admonition" rst primitive is split into "specific" admonitions ("attention," "caution," etc) and the "generic" admonition ("admonition"). For more, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#admonitions The _admonitions set and keys of the _admonitiontitles dict overlap exactly except _admonitions has an "admonition" entry. Nowhere in Mercurial is the "admonition" admonition directive used. Even if it were, it doesn't have a title, so it wouldn't be rendered correctly. So, let's remove "admonition" from the set of recognized admonition directives. diff -r b3640334a43a -r 32a563a01da4 mercurial/minirst.py --- a/mercurial/minirst.py Wed Mar 29 19:59:47 2017 -0700 +++ b/mercurial/minirst.py Wed Mar 29 20:05:18 2017 -0700 @@ -414,7 +414,6 @@ _admonitions = set([ - 'admonition', 'attention', 'caution', 'danger',