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

Re: Simulating "svn lock" for a whole dir

From: Andreas Hasenack <andreas_at_mandriva.com.br>
Date: 2007-05-03 18:48:25 CEST

On Wed, May 02, 2007 at 05:56:43PM -0400, Davies, Aaron wrote:
> Andreas Hasenack wrote:
>
> > On Wed, May 02, 2007 at 04:44:33PM -0400, Steve Bakke wrote:
> > >
> > > On 5/2/07 2:13 PM, "Andreas Hasenack"
> > > <andreas@conectiva.com.br> wrote:
> > >
> > > > I would like to be able to do something like "svn lock"
> > > > for a whole
> > > > directory, and not just for a file. Using it for all files in the
> > > > directory is also not practical for me.
> > >
> > > Why not? I assume you're wrapping your commands. If you
> > > get the list
> > > of directory files, you can just do one big 'svn lock
> > > file-list' and
> > > it will lock them all at once.
> >
> > There are also subdirectories. It could get ugly quickly.
>
> find <root> -type f -exec svn lock '{}' ';'
>
> or
>
> find <root> -type f | xargs svn lock
>
> better yet, get zsh
>
> svn lock <root>/**/*(.)

Any of this doesn't prevent someone from adding a new file to one of the
directories, right?

Also, I would need to check it all out first, lock, and commit back. Or
grab the filelist in the form of urls.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat May 5 17:30:38 2007

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.