D6825: contrib: start building a library for simple hooks

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Sat Sep 7 13:27:13 EDT 2019


indygreg added a comment.


  I think we should go a step further and have some built-in hooks in Mercurial itself, like we do extensions. A good first implementation would be to define those hooks somewhere where they can be imported, add tests like they are standalone hooks. As a follow-up (read: slightly more work), we can define a new config syntax for using these hooks. e.g. `builtin:reject_new_heads`.
  
  What do others think?

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6825/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6825

To: joerg.sonnenberger, #hg-reviewers
Cc: indygreg, pulkit, mercurial-devel


More information about the Mercurial-devel mailing list