Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: [Subclipse-users] A question about using checking out folders

subclipse
Discussion topic

There will be a brief maintenance window every Friday at 17:00 Pacific.
For further details, see CollabNet's maintenance and upgrade policy.

Back to topic list

Re: [Subclipse-users] A question about using checking out folders

Author Daniel Becroft <djcbecroft at gmail dot com>
Full name Daniel Becroft <djcbecroft at gmail dot com>
Date 2010-06-16 18:02:23 PDT
Message On Wed, Jun 16, 2010 at 2:19 AM, Yungwei Chen <yungwei at resolvity dot com> wrote:
> I have a branch in svn, which contains 5 child folders:
> svn://host/server/br​anches/11_30_2009/a1​
> svn://host/server/br​anches/11_30_2009/a2​
> svn://host/server/br​anches/11_30_2009/a3​
> svn://host/server/br​anches/11_30_2009/a4​
> svn://host/server/br​anches/11_30_2009/a5​
>
> For project a1, I only need a1, a2, and a3. So I checked them out separately to my box. Their folder structure looks like the following:
> ${code.src.dir}/a1
> ${code.src.dir}/a2
> ${code.src.dir}/a3
>
> Now when I try to get revision info from the working copy using the snippet below, I got an error.
>
> <target name="get-revision-from-wc" description="Get revision info from a working copy.">
>        <svn username="${svn.usr.id}" password="${svn.usr.pwd}" failonerror="true">
>                <wcVersion path="${code.src.dir}" />
>        </svn>
> </target>
>
> The error is the following. And I guess it's because ${code.src.dir} doesn't have the hidden _svn folder.
> C:\server\runtime​build-clu.xml:78: The following error occurred while executing this line:
> C:\server\runtime​build.xml:367: java.lang.NullPointerException
>
> How can I check out a1, a2, and a3 folders so that the folder structure looks like the following? Thanks.
> ${code.src.dir}/11_30_2009/_svn (hidden)
> ${code.src.dir}/11_30_2009/a1
> ${code.src.dir}/11_30_2009/a2
> ${code.src.dir}/11_30_2009/a3

Not sure how you would do it in Subclipse, but from the command-line
it would be something like:

svn checkout svn://host/server/br​anches/11_30_2009 --depth=empty 11_30_2009
svn update 11_30_2009/a1 --depth=infinity
svn update 11_30_2009/a2 --depth=infinity
svn update 11_30_2009/a3 --depth=infinity

There's a "Depth" option in the Checkout dialog from the SVN
Repository Exploring view, but from there, I don't know how you would
do the individual updates (someone else here might be able to help).

Cheers,

« Previous message in topic | 2 of 2 | Next message in topic »

Messages

Show all messages in topic

[Subclipse-users] A question about using checking out folders ychen Yungwei Chen 2010-06-15 09:19:06 PDT
     Re: [Subclipse-users] A question about using checking out folders Daniel Becroft <djcbecroft at gmail dot com> Daniel Becroft <djcbecroft at gmail dot com> 2010-06-16 18:02:23 PDT
Messages per page: