.hgrc/hooks automatic hook directory

Arne Babenhauserheide arne_bab at web.de
Wed Jan 2 20:02:37 UTC 2019


anatoly techtonik <techtonik at gmail.com> writes:
> Looks like the only option is placing scripts in some newly created
> `~/.hghooks/`
> dir and reference that script explicitly in `.hgrc`. It is kind of
> hard to automate this
> system setup with just `dotfiles` checkout.

For automation it should suffice to use

echo '[hooks]
post-clone.something = ~/.hghooks/post-clone
' >> ~/.hgrc

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1076 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20190102/138911d8/attachment.asc>


More information about the Mercurial mailing list