|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Setting “svn:needs-lock” property recursively on a folder in repositoryHi,
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, where I expect it to be in Read Only mode. I could not find the reason for this. I am not able to figure out what wrong I am doing. Can someone please explain how to set this property on repository & make sure it is inherited by each new revision automatically? Any help is greatly appreciated. Thanks in advance |
|
|
RE: Setting “svn:needs-lock” property recursively on a folder in repository> 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. BOb > where I expect it to be in Read Only mode. I could not find the > reason for > this. I am not able to figure out what wrong I am doing. Can > someone please > explain how to set this property on repository & make sure it is > inherited > by each new revision automatically? > > Any help is greatly appreciated. Thanks in advance > > -- > View this message in context: http://old.nabble.com/Setting- > %E2%80%9Csvn%3Aneeds-lock%E2%80%9D-property-recursively-on--a- > folder-in-repository-tp26163370p26163370.html > Sent from the Subversion Users mailing list archive at Nabble.com. > > ------------------------------------------------------ > http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMes > sageId=2414205 > > To unsubscribe from this discussion, e-mail: [users- > unsubscribe@...]. ------------------------------------------------------ http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2414207 To unsubscribe from this discussion, e-mail: [users-unsubscribe@...]. |
|
|
Re: Setting “svn:needs-lock” property recursively on a folder in repositoryOn Tue, Nov 3, 2009 at 15:06, Bob Archer <bob.archer@...> 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@...]. |
| Free embeddable forum powered by Nabble | Forum Help |