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

Re: newbie checkout question

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-04-06 18:44:09 CEST

On Apr 6, 2006, at 18:24, Ryan Schmidt wrote:

> Ah. I've never really used CVS so I was unaware. Then you'll have
> to do as you already found out:
>
>> The steps I appear to have to take in svn to get the equivalent of
>> this cvs line:
>>
>> cvs co common/software/utilities/foo/bar/include common/software/
>> utilities/foo/bar/src
>>
>> are the following 7 svn checkout lines:
>>
>> svn co -N file:///tmp/svnrepos/trunk/common
>> svn co -N file:///tmp/svnrepos/trunk/common/software common/software
>> svn co -N file:///tmp/svnrepos/trunk/common/software/utilities \
>> common/software/utilities
>> svn co -N file:///tmp/svnrepos/trunk/common/software/utilities/foo \
>> common/software/utilities/foo
>> svn co -N file:///tmp/svnrepos/trunk/common/software/utilities/foo/
>> bar \
>> common/software/utilities/foo/bar
>> svn co -N file:///tmp/svnrepos/trunk/common/software/utilities/foo/
>> bar/src \
>> common/software/utilities/foo/bar/src
>> svn co -N file:///tmp/svnrepos/trunk/common/software/utilities/foo/
>> bar/include \
>> common/software/utilities/foo/bar/include

Sorry, no, wait, that's wrong. The first command should be a
checkout; all subsequent commands should be updates. Otherwise you've
got unrelated working copies nested within each other, which isn't
the idea.

svn co -N \
        file:///tmp/svnrepos/trunk/common

svn up -N \
        common/software \
        common/software/utilities\
        common/software/utilities/foo \
        common/software/utilities/foo/bar

svn up \
        common/software/utilities/foo/bar/src \
        common/software/utilities/foo/bar/include

Note that with -N you still get all files in the various directories;
it's only subdirectories that are omitted.

Note also that -N is considered broken. Whether it's too broken to be
of use to you, you'll have to decide on your own, just be aware that
some things might be weird when you use this option.

http://subversion.tigris.org/issues/show_bug.cgi?id=695

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 6 18:45:45 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.