You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Phil <pl...@gmail.com> on 2005/07/20 19:13:51 UTC

How do I apply svn:needs-lock to an entire repository?

I have a repository called "repo1"

What is the exact syntax that I need to apply svn:needs-lock to all
the files in "repo1" including all the files in the subdirectories...?

All the comments I have tried have failed.

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: How do I apply svn:needs-lock to an entire repository?

Posted by James FitzGibbon <jf...@primustel.ca>.
On Jul-20-05, at 3:42 PM, Phil wrote:

> Thank you!!!!
>
> Work perfectly.
>
> Thanks again!
>
> On 7/20/05, Mark Phippard <Ma...@softlanding.com> wrote:
>
>> svn propset -R svn:needs-lock yes wc
>>

Don't forget to make yourself a pre-commit check that ensures that  
the property is set on newly added files.  Or, you could have a  
maint. task walk the repo on a regular basis, setting the property  
and doing an automated checkin.  Unlike other external maint. tasks  
that have the potential to require the users to constantly run 'stat - 
u' followed by 'update' to track the maint. changes, the addition of  
a property that doesn't really have a value shouldn't cause merge  
conflicts.

I suppose if your maint. task added 'svn:needs-lock=1' and a user  
added a file, committed it and then added 'svn:needs-lock=yes' you  
might run into trouble, but that's more of a training issue as to  
what value you want your users to use for 'svn:needs-lock'.

Regards

-- 
j.

James FitzGibbon
Systems Developer, Primus Telecommunications Canada
416.644.6111




-- 
----------------------------------------------------------------------------
This electronic message contains information from Primus Telecommunications
Canada Inc. ("PRIMUS") , which may be legally privileged and confidential.
The information is intended to be for the use of the individual(s) or entity
named above. If you are not the intended recipient, be aware that any
disclosure, copying, distribution or use of the contents of this information
is prohibited. If you have received this electronic message in error, please
notify us by telephone or e-mail (to the number or address above)
immediately. Any views, opinions or advice expressed in this electronic
message are not necessarily the views, opinions or advice of PRIMUS.
It is the responsibility of the recipient to ensure that
any attachments are virus free and PRIMUS bears no responsibility
for any loss or damage arising in any way from the use
thereof.The term "PRIMUS" includes its affiliates.
----------------------------------------------------------------------------
Pour la version en fran�ais de ce message, veuillez voir
 http://www.primustel.ca/fr/legal/cs.htm
----------------------------------------------------------------------------

Re: How do I apply svn:needs-lock to an entire repository?

Posted by Phil <pl...@gmail.com>.
Thank you!!!!

Work perfectly. 

Thanks again!

On 7/20/05, Mark Phippard <Ma...@softlanding.com> wrote:
> svn propset -R svn:needs-lock yes wc

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: How do I apply svn:needs-lock to an entire repository?

Posted by Mark Phippard <Ma...@softlanding.com>.
Phil <pl...@gmail.com> wrote on 07/20/2005 03:13:51 PM:

> I have a repository called "repo1"
> 
> What is the exact syntax that I need to apply svn:needs-lock to all
> the files in "repo1" including all the files in the subdirectories...?
> 
> All the comments I have tried have failed.

svn co url://repo1 wc
svn propset -R svn:needs-lock yes wc
svn ci wc -m "Set needs:lock property on all files in repository"

Mark



_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs. 
_____________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org