Index: subversion/libsvn_repos/hooks.c =================================================================== --- subversion/libsvn_repos/hooks.c (revision 22622) +++ subversion/libsvn_repos/hooks.c (working copy) @@ -528,7 +528,7 @@ args[2] = user ? user : ""; args[3] = NULL; - SVN_ERR(run_hook_cmd("start-commit", hook, args, NULL, pool)); + SVN_ERR(run_hook_cmd(SVN_REPOS__HOOK_START_COMMIT, hook, args, NULL, pool)); } return SVN_NO_ERROR; @@ -556,7 +556,7 @@ args[2] = txn_name; args[3] = NULL; - SVN_ERR(run_hook_cmd("pre-commit", hook, args, NULL, pool)); + SVN_ERR(run_hook_cmd(SVN_REPOS__HOOK_PRE_COMMIT, hook, args, NULL, pool)); } return SVN_NO_ERROR; @@ -584,7 +584,7 @@ args[2] = apr_psprintf(pool, "%ld", rev); args[3] = NULL; - SVN_ERR(run_hook_cmd("post-commit", hook, args, NULL, pool)); + SVN_ERR(run_hook_cmd(SVN_REPOS__HOOK_POST_COMMIT, hook, args, NULL, pool)); } return SVN_NO_ERROR; @@ -631,7 +631,7 @@ args[5] = action_string; args[6] = NULL; - SVN_ERR(run_hook_cmd("pre-revprop-change", hook, args, stdin_handle, + SVN_ERR(run_hook_cmd(SVN_REPOS__HOOK_PRE_REVPROP_CHANGE, hook, args, stdin_handle, pool)); SVN_ERR(svn_io_file_close(stdin_handle, pool)); @@ -693,7 +693,7 @@ args[5] = action_string; args[6] = NULL; - SVN_ERR(run_hook_cmd("post-revprop-change", hook, args, stdin_handle, + SVN_ERR(run_hook_cmd(SVN_REPOS__HOOK_POST_REVPROP_CHANGE, hook, args, stdin_handle, pool)); SVN_ERR(svn_io_file_close(stdin_handle, pool)); @@ -727,7 +727,7 @@ args[3] = username; args[4] = NULL; - SVN_ERR(run_hook_cmd("pre-lock", hook, args, NULL, pool)); + SVN_ERR(run_hook_cmd(SVN_REPOS__HOOK_PRE_LOCK, hook, args, NULL, pool)); } return SVN_NO_ERROR; @@ -763,7 +763,7 @@ args[3] = NULL; args[4] = NULL; - SVN_ERR(run_hook_cmd("post-lock", hook, args, stdin_handle, pool)); + SVN_ERR(run_hook_cmd(SVN_REPOS__HOOK_POST_LOCK, hook, args, stdin_handle, pool)); SVN_ERR(svn_io_file_close(stdin_handle, pool)); } @@ -795,7 +795,7 @@ args[3] = username ? username : ""; args[4] = NULL; - SVN_ERR(run_hook_cmd("pre-unlock", hook, args, NULL, pool)); + SVN_ERR(run_hook_cmd(SVN_REPOS__HOOK_PRE_UNLOCK, hook, args, NULL, pool)); } return SVN_NO_ERROR; @@ -831,7 +831,7 @@ args[3] = NULL; args[4] = NULL; - SVN_ERR(run_hook_cmd("post-unlock", hook, args, stdin_handle, pool)); + SVN_ERR(run_hook_cmd(SVN_REPOS__HOOK_POST_UNLOCK, hook, args, stdin_handle, pool)); SVN_ERR(svn_io_file_close(stdin_handle, pool)); }