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

Re: Setting “svn:needs-lock” property recursively on a folder in repository

From: Andy Levy <andy.levy_at_gmail.com>
Date: Sun, 8 Nov 2009 15:54:37 -0500

On Tue, Nov 3, 2009 at 15:06, Bob Archer <bob.archer_at_amsi.com> wrote:
>> I am trying to set “svn:needs-lock” property recursively on a
>> folder inside
>> a repository. One of my project teams needs to be notified to lock
>> the file
>> before editing it from a particular folder. They want to do this on
>> the
>> server itself rather than the working copy in eclipse.
>>
>> I could set this property recursively on all the revisions using
>> following
>> command
>>
>> svn propset svn:needs-lock --revprop –r ‘HEAD’ yes –R
>> file://var/svn/repos1/folder1
>>
>> (above command is for example, I actually created a small script to
>> recursively set this property on all the revisions)
>>
>> I made sure this property set by using “svn propget” command and
>> also
>> looking at the revision property file in “db” directory. It looks
>> good
>> there.
>>
>> When I checkout the folder in eclipse it is checked out in
>> Read/Write mode,
>
> svn:needs-lock needs to be a versioned property not a revprop. That is probably why it isn't working.

Which also means that specifying a revision is not needed.
And versioned properties need to be set in a working copy, not via URL.
And a file:// URL should have 3 slashes in it, not 2.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2415607

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-08 21:55:34 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.