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

Re: svn commit - (no author)

From: <kfogel_at_collab.net>
Date: 2004-10-13 21:06:59 CEST

v4r4n <console.cowboy@gmail.com> writes:
> I just chmod 777'ed it.
>
> $ ls -IR
> post-commit.tmpl pre-commit.tmpl pre-revprop-change.tmpl
> post-revprop-change.tmpl pre-revprop-change start-commit.tmpl

Wanted 'lR' not 'IR' :-).

> and, as expected, still get the same response:
>
> $ svn propset -r 9 --revprop svn:author "author"
> svn: 'pre-revprop-change' hook failed with error output:
>
> $

Hmmm... In your script:

> REPOS="file:///example/svn/repo/project/trunk"
> REV="9"
> USER="author"
> PROPNAME="svn:author"
>
> if [ "$PROPNAME" = "svn:log" ]; then exit 0; fi
> exit 1
>
> Instead of:
>
> REPOS="$1"
> REV="$2"
> USER="$3"
> PROPNAME="$4"
>
> if [ "$PROPNAME" = "svn:log" ]; then exit 0; fi
> exit 1

REPOS should be a regular path to the repos, not a URL.

But why are you hard-setting them at all? Why not do what the
template says to do?

Secondly, you should be getting an exit with error (1), because you
hard set PROPNAME to "svn:author", and then you test for "svn:log".
And when you exit with error, you print no output, which is exactly
the symptom you're seeing...

This all seems fairly obvious. Am I missing something?

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 13 22:56:31 2004

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.