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

Re: globbing/wildcards (Was: Moving root repository)

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-10-17 14:26:21 CEST

Noel Yap <yap_noel@yahoo.com> writes:

> --- Philip Martin <philip@codematters.co.uk> wrote:
> > > If so, it would really help in working with large
> > > directories. For example, I would be able to do
> > "svn
> > > co 'URL/[a-m]*'; svn co 'URL/[n-z]*'".
> >
> > Hard. I assume you want to get a single working
> > copy that represents
> > URL, and not just a set of working copies that
> > represent the elements
> > in URL. So you even if you restrict the elements
> > you still need to
> > checkout URL itself.
>
> I'm not sure I understand what you mean (probably 'cos
> my post was unclear).

You said "large directories", I assumed you were trying to work around
a problem checking out such a directory.

> Let's say I have the following in my repository:
> /project/trunk
> /a0
> /a1
> /b0
> /b1
> /z0
> /z1
>
> I would like to be able to:
> svn ls 'file:///project/trunk/[a-m]*'

We don't support that, nobody has written application globbing. On a
Unix like system you can do: "svn ls | grep"

> and get:
> a0
> a1
> b0
> b1
>
> Similarly:
> svn co 'file:///project/trunk/[a-m]*'
>
> would checkout the elements.

Is it common to want to do this?

On Unix: svn ls | grep | xargs -n1 -i svn co URL/{}

All the usual disclaimers about spaces and/or quotes in the element
names apply, you get to shoot yourself.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 17 14:27:03 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.