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

Re: svn propset syntax?

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-04-12 20:33:06 CEST

On Apr 12, 2006, at 20:21, Phil wrote:

> svn propset svn:needs-lock --revprop -r HEAD 1 http://vsubversion/
> svn/docs
>
> But I get a failure:
> 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
>
> I have changed the default hook script to allow svn:needs-lock by
> modifying the script as follows:
> #if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi
> if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:needs-lock" ]; then exit
> 0; fi

svn:needs-lock is a versioned property, not a revision property. You
set it by checking out a working copy, then using e.g...

svn propset svn:needs-lock "on" foo

...where foo is the file whose svn:needs-lock property you want to
enable. Then you commit that change.

You do not use the pre-revprop-change hook for this because it is not
a revision property.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 12 20:34:44 2006

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.