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

Re: pre-revprop-change

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2007-05-29 17:24:20 CEST

On Tuesday 29 May 2007 14:28, Remo Liechti wrote:
> >> On Tuesday 29 May 2007 13:34, Remo Liechti wrote:
> >> Does anybody have it runing on windows? I would like to be able to
> >> change the log message of a commit. I have an empty file called
> >> pre-revprop-change in the hooks folder
> >
> > Sorry, but that can't work. The reason is that MS Windows recognises
> > executable files (which those hooks must be) by their extension, so just
> > name it pre-revprop-change.bat and it should work. This is also
> > documented in the book, btw.
>
> This did not help. In which book?

http://subversion.tigris.org prominently displays a link to the
book/documentation and the FAQ. It was in an ugly yellow bar, last time I
looked.

> svn propset -r REV --revprop svn:log "new log message" URL
>
> This gave me:
>
> C:\Documents and Settings\Administrator>svn propset -r 1 --revprop svn:log
> "new log message" http://172.20.3.98/repo/.polarion/components.xml
> Authentication realm: <http://172.20.3.98:80> Subversion repository on
> testpolwi n
> Password for 'Administrator': *****
> Authentication realm: <http://172.20.3.98:80> Subversion repository on
> testpolwi n
> Username: b7liecr
> Password for 'b7liecr': ***********
> 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

One thing first: you do have the Apache server running on an MS Windows
machine, right? If not, the advise to change the hook's name to *.bat would
be futile, on Unix-like systems you would need to set the file's executable
bit (chmod +x ..)!

Next, check that normal operation works, i.e. checking in and out. If this
doesn't work completely, it might be a proxy in between. Some proxies require
special configuration before they handle WebDAV commands properly.

Then, the user that the Apache process is running as of course needs to have
access to the hook script. If this was not the case, I think you should see
something in the Apache logfile, but I don't use Apache here, let alone under
win32, so I'm not really sure.

There was also a way to cause libneon (the library used for WebDAV) to supply
more debug information. This could help determine what WebDAV request failed
exactly.

Lastly, what you could try, would be to try to change the property by
accessing the repository via the file:// access method. This requires a shell
on the very machine that Apache is currently running on but it rules out that
something in the network communication is messed up.

If not even that works, I'd suggest you start from the opposite direction,
i.e. you first create a repository on your local machine and then try to
configure the hook script there, moving the whole thing step by step to your
target setup until you know which change caused it to fail.

good luck!

Uli

-- 
Sator Laser GmbH
Geschäftsführer: Ronald Boers, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 29 17:25:35 2007

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.