The README.txt file in the xsvn directory is incorrect on three accounts.

1) It instructs the reader to add commands to invoke the pre-commit hook to the start-commit file. Obviously a copy/paste error.

2) The README file instructs the user to add the following to pre-commit:

#!/bin/sh
php [path_to_svn]/hooks/xsvn/xsvn-pre-commit.php [path_to_svn]/hooks/xsvn/xsvn-config.php

However, the xsvn pre-commit script requires the repository and transaction number:

Transmitting file data .svn: Commit failed (details follow):
svn: Commit blocked by pre-commit hook (exit code 3) with output:
Usage: php /srv/svn/support/hooks/xsvn-pre-commit.php <config file> REPO_PATH TX_NAME

3) The README file instructs the user to add the following to post-commit:

#!/bin/sh
php [path_to_svn]/hooks/xsvn/xsvn-post-commit.php [path_to_svn]/hooks/xsvn/xsvn-config.php

The xsvn pre-commit script also requires repository and revision number.

Oh I found these in the docs here:

http://github.com/chrono325/versioncontrol_svn/blob/de9e94da1b5920740428...

Comments

jpetso’s picture

Status: Active » Fixed

Obviously fixed by dhax already in commit 6f14f1339893f711c4afef7eeaee03f3226f574a.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.