Search code examples
mercurialmercurial-extension

How do I make Mercurial require files to have documentation (Javadoc, etc) before pushing?


Is this something that is currently possible via extension or native functionality?

Thanks,

Brandon


Solution

  • You would want a pre-commit hook that would call out to your "validate document" program. Then based on the response to the document validation, you could permit/deny the hook.