Path to hook in config file

Hartmut Goebel h.goebel at crazy-compilers.com
Mon Jan 9 22:10:49 UTC 2023


Am 09.01.23 um 22:26 schrieb Hartmut Goebel:
>
> I wonder whether I can add the repo's root directory to the hook path, 
> like this:
>
> hooks.update.requirements=$HG_REPO_ROOT/hooks/update_requirements
>
I just learned that this done by default already. Paths for hooks are 
relative to the repo-root.

(In my case it did not work first, since I checked out a version of the 
repo which did not contain the hooks.)

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          |h.goebel at crazy-compilers.com                |
|www.crazy-compilers.com  | compilers which you thought are impossible |
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20230109/b08e6d0e/attachment.html>


More information about the Mercurial mailing list