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

Re: SVN checkout of all dir under a root dir

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: Fri, 24 Sep 2010 11:49:02 +0200

On Friday 24 September 2010, Hari shankar wrote:
> i have structure like this in SVN repo
>
> root-dir
>
> -- child-proj-1
>
> -- child-proj-2
>
> i want to give path to root dir and checkout all the child projects
> directly.
>
> i.e. i want to give a command something like
> *svn checkout https://svn.repo/root-dir*
> in a local dir named C:\workspace [...]

Note: SVN doesn't do any wildcard expansion. Since this is also not a path,
the shell won't do that expansion either for you. For that reason this can't
work.

> [...] i should get result like
>
> C:\workspace
>
> -- child-proj-1
>
> -- child-proj-2
>
> Is this possible? The SVN checkout command above will copy root-dir too but
> i don't want.

Quoting from "svn help checkout":
| If PATH is omitted, the basename of the URL will be used as the
| destination. If multiple URLs are given each will be checked out
| into a sub-directory of PATH, with the name of the sub-directory
| being the basename of the URL.

The "basename" is the last part of the URL, in your case it's "root-dir". Try
specifying "." instead, it should then create the working copy in the current
dir. The result is a bit different from checking out all child projects
separately though, because it will also create a ".svn" folder with metadata
in the current directory. If you delete that folder, you effectively have the
same as checking them out separately.

Uli

-- 
ML: http://subversion.apache.org/docs/community-guide/mailing-lists.html
FAQ: http://subversion.apache.org/faq.html
Docs: http://svnbook.red-bean.com/
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
Received on 2010-09-24 11:49:42 CEST

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.