.hgrc/hooks automatic hook directory

anatoly techtonik techtonik at gmail.com
Wed Jan 2 10:21:50 UTC 2019


Hi.

Am I right that Mercurial does't support any user level drop-in
directory for hooks?
For example, if I want to run script after every clone, it is
impossible to create this
script in `~/.hgrc/hook/post-clone` to make it executed automatically?

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.

-- 
anatoly t.


More information about the Mercurial mailing list