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

Re: Issue 493

From: <peter.westlake_at_arm.com>
Date: 2001-10-05 18:23:54 CEST

On 2001-10-05 16:23:01 cmpilato wrote:
><peter.westlake@arm.com> writes:
>
>> This may be a silly question, but what is the difference between add
>> and import?

Thanks for the explanations, one and all.

>At this time, import does not convert your source directory into a
>Subversion working copy. That is, in order to turn a directory foo
>and all its children into a versioned tree, you would currently do
>either:
>
>(1) - Create an empty repository
> - Check it out to say, 'wc'
> - Copy all of foo's children into 'wc'
> - `svn add --recursive wc/*'
> - `svn ci wc'
> - Remove the foo directory
> - Rename 'wc' to 'foo'
>
>(2) - Create an empty repository
> - `svn import <repos_url> foo'
> - Remove the foo directory
> - Check out foo from the repository

Does the repository have to start out empty?
If not, I suppose the first method would have
the added disadvantage that if you wanted 'foo'
to appear at the top level, you would end up
checking out everything in the repository, and
there might be a lot of it.

Is it possible to add foo below the top level?

Peter.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:44 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.