Releaseotes --check error
Craig Ozancin
c.ozancin at gmail.com
Mon Sep 12 21:50:40 UTC 2022
While looking at releasenotes documentation, I discovered that hg
releasenotes --check does not work.
I spent sometime looking at the code. I have a minimal readability with
Python, but was able to figure out that the issue is in this set of code.
Line 350: admonition = re.search(RE_DIRECTIVE, ctx.description())
The RE_DIRECTIVE is defined as:
Line 111: RE_DIRECTIVE = re.compile(br'^\.\.
([a-zA-Z0-9_]+)::\s*([^$]+)?$')
ctx.description is valid. The search does not find the invalid releasenote
tag:
Add releasenotes test:
.. abcd::
An invalid releasenotes section reference.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20220912/9259286a/attachment.html>
More information about the Mercurial
mailing list