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

pre-revprop-change

From: Nathan Nobbe <quickshiftin_at_gmail.com>
Date: Thu, 28 Feb 2008 00:46:13 -0500

hello all,

i am trying to set the svn:eol-style property on a repository of mine and
starting to loose hair as a consequence of this error message:

svn: DAV request failed; it's possible that the repository's
pre-revprop-change hook either failed or is non-existent
svn: At least one property change failed; repository is unchanged

ive searched the archives and read the manual on setting the property and
the hook scripts.
i should be on the right track, but something still isnt copacetic.
for property changes, you must have a hook defined, otherwise svn will act
as if the hook failed every time.
fair enough, so what ive done is defined the hook by removing the .tmpl
extension on the template file that ships w/ the repo.
and the script is executable as well,
-rwxr-xr-x 1 apache apache 58 Feb 28 00:39
/moxune/repository/hooks/pre-revprop-change

great, so im still getting the error message.
to rule out the latter part of the message, namely does the script exist, i
have added some trivial logging to the script,
which is writing out to the target file, indicating the script not only
exists, but svn is successfully invoking it.
and for the former part of the message, is the script failing, well all its
doing is echoing a string to a file and calling exit 0 so i dont think its
failing.
here is my hook script

#!/bin/sh
echo 'called me' >> /home/nathan/imCrazy
exit 0

and as i said, 'called me' is getting written to /home/nathan/imCrazy; twice
actually (dont know why)
i dont know how i could write any more trivial of a hook script. afaict,
this should be returning successfully to the caller and the property should
be getting set in the repository.
here is the command im using to invoke the property change

svn propset eol:style --revprop -r HEAD native
https://dev.moxune.com/svn/repos/sentinelWorking/branches/sentinel_v1.2/code

thanks in advance,

-nathan
Received on 2008-02-28 06:46:37 CET

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.