How to get path to repository for a global hook
Martin Geisler
martin at geisler.net
Thu Apr 11 07:13:50 UTC 2013
Jerry Maloney <gpjerrymaloney at gmail.com> writes:
> I am writing a global hook to run on our SCM server that sets file
> permissions appropriately whenever incoming changesets are applied. So
> something like this in /etc/mercurial/hgrc:
>
>
>
> [hooks]
>
> changegroup.permissions = chmod -R u+x /path/to/the/directory/being/updated
Hooks are executed with the current working directory set to the root of
the repository. So maybe you can use '.' as the path above?
--
Martin Geisler
More information about the Mercurial
mailing list