From 6ec4dddcd88975a31358983bfcebdb2c6459563e Mon Sep 17 00:00:00 2001 From: Michael Larson Date: Thu, 18 Nov 2010 17:03:06 -0800 Subject: 1) Ordered evaluation of these scripts similar to what is found in /etc/rc* system. An integer at the beginning of the script identifies the order in which the script is executed (i.e. 01test is run before 55monkey). 2) There is now a pre-commit hook that can be used. These scripts are located at: /etc/precommit and are invoked before commit has started processing actions. 3) A success/failure environment flag set before a process has run has been changed to a tri-state: SUCCESS = all priority groups succeeded FAILURE = all priority groups failed PARTIAL = mixed success/failed --- src/common/defs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/defs.h b/src/common/defs.h index b931bd9..331fe2b 100644 --- a/src/common/defs.h +++ b/src/common/defs.h @@ -20,7 +20,8 @@ #define ENV_COMMIT_STATUS "COMMIT_STATUS" #define COMMIT_CHANGES_FILE "/tmp/.changes" -#define COMMIT_HOOK_DIR "/etc/commit" +#define POST_COMMIT_HOOK_DIR "/etc/commit" +#define PRE_COMMIT_HOOK_DIR "/etc/pre_commit" struct Result { -- cgit v1.2.3