[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: Davies, Aaron <aaron.davies_at_bofasecurities.com>
Date: 2007-05-02 23:56:43 CEST

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>/**/*(.)

-- 
Aaron Davies
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 2 23:57:11 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.