[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: commit with exit code 255

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Sun, 17 Jun 2012 13:10:04 -0400

On Sun, Jun 17, 2012 at 9:41 AM, Chris Stäbler
<chresse1605_at_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.
Received on 2012-06-17 19:10:45 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.