##// END OF EJS Templates
shadow-repos: use safer way to destroy shadow repositories....
shadow-repos: use safer way to destroy shadow repositories. we had reported errors on removal of shadow repos. Not reproduced, however suspecting are filesystem sync/symlink race-conditions on shared storage. End result were existing shadow-repo directories that tricked rhodecode into thinking shadow repos is existing, but infact it was a dummy structure semi-removed. Using shutil.move we ENSURE rhodecode doesn't read those back even if removal fails.

File last commit:

r1:854a839a default
r2777:f1cc2e3d default
Show More
repo-hooks.rst
56 lines | 1.4 KiB | text/x-rst | RstLexer
project: added all source files and assets
r1 .. _repo-hooks:
|RCE| Repository Hooks
======================
|RCE| installs hooks inside each of the |repos| that it manages. These
hooks enable users to execute custom actions based on certain events.
This is the complete list of |repos| hooks and the events which trigger them:
.. rst-class:: dl-horizontal
\--CREATE_REPO_HOOK
Any time a |repo| is created.
\--CREATE_REPO_GROUP_HOOK
Any time a |repo| group is created.
\--CREATE_USER_HOOK
Any time a user is created.
\--DELETE_REPO_HOOK
Any time a |repo| is created.
\--DELETE_USER_HOOK
Any time a user is deleted.
\--PRE_CREATE_USER_HOOK
Any time a user is created but before the action is executed by |RCE|.
\--PRE_PULL
Any pull from a |repo| but before the action is executed by |RCE|.
\--PRE_PUSH
Any push to a |repo| but before the action is executed by |RCE|.
\--POST_PUSH
After any push to a |repo|.
\--PUSH_HOOK
Any push to a |repo|, including editing tags or branches.
Commits via API actions that update references are also counted.
\--PULL_HOOK
Any pull from a Repository.
Using Repository Hooks
----------------------
To use these hooks you need to install |RCX|. For more information, see the
:ref:`install-rcx` section.
Creating Extensions
-------------------
To create your own extensions using these hooks, see the :ref:`dev-plug`
section.