This is an archive of the discontinued Mercurial Phabricator instance.

contrib: add check flag for use of admonitions and its validity
AbandonedPublic

Authored by rishabhmadan96 on Aug 11 2017, 6:42 PM.

Details

Reviewers
pulkit
Group Reviewers
hg-reviewers
Summary

While using releasenotes extension, we will be using admonitions in commit messages.
The check (-c) flag will look for an admonition within the message. If it exists, it will
verify if it is stated under default or custom admonition. The check fails if the
admonition is not present in any of them.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

rishabhmadan96 created this revision.Aug 11 2017, 6:42 PM
pulkit added a subscriber: pulkit.Aug 12 2017, 1:56 PM

Can you add tests for this. Also the commit message starts with "contrib", which seems unrelated here, please correct that.

hgext/releasenotes.py
543

You can do return checkadmonitions(...) and that will prevent the later spacing diff.

pulkit requested changes to this revision.Aug 12 2017, 1:57 PM
This revision now requires changes to proceed.Aug 12 2017, 1:57 PM

is this the same thing as D368? Should we close this one in favor of that one?

rishabhmadan96 marked an inline comment as done.Aug 15 2017, 1:53 PM
rishabhmadan96 abandoned this revision.
In D355#6196, @durin42 wrote:

is this the same thing as D368? Should we close this one in favor of that one?

Yes. I'm abandoning this one.