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