[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: Ed Price <ed.price_at_gmail.com>
Date: 2006-10-19 21:15:42 CEST

>> 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.

-Ed

---------------------------------------------------------------------
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:16:36 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.