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

Re: [TSVN] Checkout Separate Portions of a Repository

From: Simon Large <simon_at_skirridsystems.co.uk>
Date: 2005-09-07 21:35:24 CEST

Stefan Küng wrote:
> Brad Rhoads wrote:
>
>>
>> According to our admin, in the linux world:
>>
>> If I wanted to only checkout separate portions of a repository that
>> can be done but it must be done with 1 command. For example,
>>
>> svn checkout http://linux2/svn/synapse/trunk/db
>> http://linux2/svn/synapse/trunk/unixscripts xyzzy
>>
>> would create the directory structure of db and unixscripts under
>> directory xyzzy
>
>
> Your Admin is lying. That's not possible in the linux world either. The
> checkout command doesn't take two URLs!

He's not lying about that part - the checkout command can take multiple
URLs. It is equivalent to several separate checkouts and you get a
separate WC for each URL.

But he is lying about the commit. In Linux you would get an error message:
svn: 'xyzzy' is not a working copy

The only way you can commit 2 separate trees in one go is to checkout
the parent folder at the top level only (ie. no subdirectories). So you
might get
xyzzy/
   db/
   reports/
   unixscripts/
   readme.txt

Then update the folders you are interested in - db and reports.

Then you can commit xyzzy because it is a WC. But don't do a normal
update on xyzzy because that will update all the folders. SVN doesn't
remember that you are only interested in some of them.

But it is probably much easier to checkout the whole of trunk (unless
it's really huge). Just because the unixscripts folder is there doesn't
mean you have to use it.

Simon

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Sep 7 21:35:27 2005

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