|
Version Control Integrations > Subversion Integration > Subversion Server Hooks |
|
|
ccollab admin trigger ensure-reviewed (for Subversion) |
|
Use the ensure-reviewed trigger to ensure that the review that was created for the specified changelist has been completed by the time you submit the changelist to the Subversion repository. If the review has not been completed, the trigger blocks the submit operation and displays an error message informing the user about the problem. Command Line Syntax: ccollab [global-options] admin trigger ensure-reviewed [--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-reviewed --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-reviewed --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. |