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

Re: How to checkout only the tree structure of a repository

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2006-10-19 21:18:03 CEST

On 10/19/06, Ed Price <ed.price@gmail.com> wrote:
> >> How to checkout only the tree structure of a repository without any
> >> files?
> >
> > I don't think you can. You'd probably have to write a script that
> > gets the directory listing with "svn ls", makes directories for all
> > the directories found in the listing, then recursively descends into
> > each directory and does the same thing.
>
> Even easier with "svn ls -R":
>
> svn ls -R $URL | grep '/$' | xargs mkdir
>
> I don't know if that is 100% bulletproof with respect to
> "svn ls -R" guaranteeing order, or being dependant on
> locale, etc. But it does work for me.

But will that get you an actual checkout, or just a directory
structure which matches that in subversion at $URL?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 19 21:19:24 2006

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.