On Sun, Jun 17, 2012 at 9:41 AM, Chris Stäbler <chresse1...@googlemail.com>wrote:
> Hello together,**** > > ** ** > > a few days ago I set up a subversionserver. Now I wanted to check every > commit for some conventions. I tried it with an pre-commit hook but always > get the following error when I try to commit something:**** > > ** ** > > Some of selected resources were not committed.**** > > svn: E165001: Commit failed (details follow):**** > > ** ** > > svn: E165001: Commit failed (details follow):**** > > svn: E165001: Commit blocked by pre-commit hook (exit code 255) with > no output.**** > > svn: E175002: MERGE of '/svn/firstrepo/repotest/trunk': 409 Conflict > (http://...)**** > > ** ** > > Here is the content of my pre-commit script:**** > > ** ** > > #!/bin/sh**** > > REPOS=”$1”**** > > TXN=”$2”**** > > echo “something for the output” 1>&2**** > > #cancel all commits for tests…**** > > exit 1**** > > ** ** > > ** ** > > Every user has executerights for the hook.**** > > I use svnserver version 1.6.8. **** > > Even with disabled firewall I can’t commit something (even from the > subversionserver itself)**** > > ** ** > > What is wrong in my “configuration”?**** > > Thanks for help**** > In Bash and in most programming languages, "exit 1" means failure. "exit 0" means success and is probably what you should be using.