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

Re: Add text to commit log

From: Lorenz <lorenznl_at_yahoo.com>
Date: Tue, 11 Mar 2008 16:13:03 +0000

Erling Wegger Linde wrote:
>Thanks, but I tried
>
>my $RESULT = `svn propset svn:log --revprop -r $REV \"new log\" $REPO`;
>
>But I still get svn: '/home/svn/milesplatform' is not a working copy

Hook scripts are running on the server and normaly only use svnadmin,
svnlook and such server-side tools which accept a plain path to the
repository root.

To get the svn client to work you will need to prefix the path passed
to the script with something like "file://localhost"

So file://localhost$REPO should work.

I would use the svn client only for the propget part of the script
though.

If you use svn propset, you will have to set up a pre-revprop-hook
script to allow you do do that.

I would use "svnadmin setlog $REPO -r $REV --bypass-hooks file-path"
instead.

-- 
Lorenz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-11 17:13:46 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.