Forum Discussion

venkuvenkius's avatar
venkuvenkius
Occasional Contributor
11 years ago

[CodeReviewer] Could not able to commit in SVN , because of the Pre-commit script

I used the below precommit code in batch file, and i could not able to commit the changes even after review is completed.

Error :

Commit failed (details follow):

Commit blocked by pre-commit hook (exit code 1) with output:

Your changelist message doesn't include the CodeReviewer review ID.

You must include text that matches this Java-style regular expression:

review:\s+(\d+)



"C:\Program Files\Collaborator Client\ccollab.exe" --url <URL> --user <Username>--password <password> --scm subversion --svn-repo-path %1 --svn-look-exe "C:\Program Files\TortoiseSVN\bin\svnlook.exe" admin trigger ensure-reviewed --review-id-regex "review:\s+(\d+)" %2 || exit 1

1 Reply

  • venkuvenkius's avatar
    venkuvenkius
    Occasional Contributor
    "C:\Program Files\Collaborator Client\ccollab.exe" --url http://127.0.0.1:8080 --scm subversion --svn-repo-path %1 --svn-look-exe "C:\Program Files\TortoiseSVN\bin\svnlook.exe" admin trigger ensure-reviewed --review-id-regex "review:\s+(\d+)" %2 || exit 1





    this solved my problem