Examples of using Hook scripts in English and their translations into Portuguese
{-}
-
Colloquial
-
Official
-
Medicine
-
Financial
-
Ecclesiastic
-
Ecclesiastic
-
Computer
-
Official/political
Property dialog for hook scripts.
These hook scripts are executed by the server that hosts the repository.
See the section called“Client Side Hook Scripts” for more information.
Do not forget to set the executable permission for the hook scripts.
Most of those tasks are offloaded to hook scripts in the/etc/kernel/*. d/ directories.
There are several properties available to configure client-side hook scripts.
TortoiseSVN also allows you to configure client side hook scripts that are executed locally upon certain events.
In the repository folder on the server,there's a sub-folder hooks which contains some example hook scripts you can use.
This dialog allows you to set up hook scripts which will be executed automatically when certain Subversion actions are performed.
Conf" into a symbolic link andmanages its contents by the hook scripts automatically.
As opposed to the hook scripts explained in the section called“Server side hook scripts”, these scripts are executed locally on the client.
The parameters are the same as if you would configure the hook scripts in the settings dialog.
All the sample hook scripts distributed with Git are in either Perl or Bash scripting, so you can also see plenty of examples of hooks in those languages by looking at the samples.
These old hook scripts are still supported in newer versions of Wagon for backward compatibility, but the new hooks before_init and before_exit should be used instead of the obsolete ones.
The hook scripts can be potentially run more times(when going back and forth in the Wagon dialogs, Wagon might restart itself or some steps might be executed multiple times in the migration workflow), so the scripts have to cope with that fact they can check at the beginning whether they need to do the action or the action has been already done or they can create a simple temporary stamp file or otherwise solve multiple runs properly.
If a hook script rejects your commit then its decision is final.
To enable a hook script, put a file in the hooks subdirectory of your Git directory that is named appropriately and is executable.
Next you must specify the command line to execute,starting with the path to the hook script or executable.
This way even ifyou move your repository to another server you do not have to adjust the hook script properties.
K0kubun aggressively developed toolchains related to release and backport workflows andalso updated the hook script for git.
You can find an example hook script hooks/post-lock.
Each property is for one specific hook script type.
To add a new hook script, simply click Add and fill in the details.
The postupload hook script initiated by dupload(1) creates updated archive files for each upload.
Svn-doc-svnadmin/usr/doc All changes to the administrative scripts, hooks, and other configuration data of the doc Subversion repository.
Svn-ports-svnadmin/usr/ports All changes to the administrative scripts, hooks, and other configuration data of the ports Subversion repository.