|
Version Control Integrations > Subversion Integration > Subversion Server Hooks |
|
|
ccollab admin trigger ensure-review-started (for Subversion) |
|
Use the ensure-review-started trigger to ensure that a review for the specified changelist has been started. The trigger blocks the submit operation if there is no review for the changelist in Collaborator, and displays an error message telling that the changes need to be reviewed before submitting them to the Subversion repository. Command Line Syntax: ccollab [global-options] admin trigger ensure-review-started [--review-id-regex <value>] <changelist-id>
Installation To install this trigger you will need to create a pre-commit hook. If you already have a pre-commit hook, you can add our tool wherever it is appropriate; otherwise you will need to create an executable hook as described in the Subversion documentation (typically a batch file under Windows or a shell script under Linux/Mac). Example Windows batch file: "C:\Program Files\Collaborator Client\ccollab.exe" --url <collabUrl> --user <collabUser> --password <collabPasswd> --scm subversion --svn-user <svnUser> --svn-passwd <svnPasswd> --svn-repo-path %1 --svn-look-exe "C:\Program Files\Subversion\bin\svnlook.exe" admin trigger ensure-review-started --review-id-regex "review:\s+(\d+)" %2 || exit 1 Example Linux/OSX shell script: /collab/install/ccollab --url <collabUrl> --user <collabUser> --password <collabPasswd> --scm subversion --svn-user <svnUser> --svn-passwd <svnPasswd> --svn-repo-path $1 --svn-look-exe /usr/bin/svnlook admin trigger ensure-review-started --review-id-regex "review:\s+(\d+)" $2 || exit 1 Note our use of "exit 1" to ensure that the script terminates with a non-zero exit code if our trigger application fails. Remarks
|
|
© 2003-2025 SmartBear Software. All rights reserved. |