.hgrc/hooks automatic hook directory

anatoly techtonik techtonik at gmail.com
Thu Jan 3 08:50:10 UTC 2019


On Wed, Jan 2, 2019 at 11:02 PM Arne Babenhauserheide <arne_bab at web.de> wrote:
>
>
> 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

No idempotency in this case.

What happens if `[hooks]` would be specified several
times? Will key/values be merged? Or are they replaced
by the new block?

-- 
anatoly t.



More information about the Mercurial mailing list