You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Jones, Clyde C." <cl...@thermo.com> on 2006/05/10 19:15:56 UTC

How do I check out a subset of directories

Hi all
 I am running subversion version 1.3.1 (r19032) on windows xp.  I have a
repository that is arranged like so:

+---Trunk
    /.../
    +---Limit_Calculation
    +---List_Result
    +---Message
    +---Report
    +---Resource
    |   +---CustomHelp
    |   |   +---NotConnected
    |   |   \---SampleStatus
    |   \---Icon
    +---Sig_figs
    +---Userfiles
    +---Worksheet
    \---_Custom
        +---Data
        +---Message
        \---Report


I would like to check out only the Trunk/_Custom/ Trunk/Message and
Trunk/List_Result directories, but not the rest.

I realize I can just do

svn co svn://localhost/Trunk/_Custom wc/_Custom 
svn co svn://localhost/Trunk/Message wc/Message 
svn co svn://localhost/Trunk/List_Result wc/List_Result 

But that gets me three working copies when I what want 1 working copy.

Is that possible or do I just need to live with 3 working copies?

-- 
Clyde Jones


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: How do I check out a subset of directories

Posted by Bob Proulx <bo...@proulx.com>.
Jones, Clyde C. wrote:
> I would like to check out only the Trunk/_Custom/ Trunk/Message and
> Trunk/List_Result directories, but not the rest.

I believe the svn:externals may be used in your situation to create a
working copy that only contains svn:external connections to those
directories that you care about.

  http://svnbook.red-bean.com/nightly/en/svn.advanced.externals.html

Bob

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: How do I check out a subset of directories

Posted by "Jones, Clyde C." <cl...@thermo.com>.
-----Original Message-----
> From:   Miha Vitorovic [mailto:mvitorovic@nil.si]
> Sent:   Wed 10-May-06 12:33
> To: Jones, Clyde C.
> Cc: users@subversion.tigris.org
> Subject:    Re: How do I check out a subset of directories
> 
> You could use this trick:
> 
> Create an empty folder in the repository (named /EMPTY or something like 
> that). And leave it empty.
> 
> Check out entire trunk:
> 
> mkdir /home/user/wc
> cd /home/user/wc
> svn co svn://localhost/Trunk/
> 
> +---Trunk
>     /.../
>     +---Limit_Calculation
>     +---List_Result
>     +---Message
>     +---Report
>     +---Resource
>     |   +---CustomHelp
>     |   |   +---NotConnected
>     |   |   \---SampleStatus
>     |   \---Icon
>     +---Sig_figs
>     +---Userfiles
>     +---Worksheet
>     \---_Custom
>         +---Data
>         +---Message
>         \---Report
> 
> 
> Go into the working copy and switch all the directories you don't need to 
> point to /empty
> 
> svn switch svn://localhost/EMPTY Limit_Calculation
> svn switch svn://localhost/EMPTY List_Result
> svn switch svn://localhost/EMPTY Message
> ... etc ..
> 
> And you have a single working copy containing only files that you need (+ 
> some folders you don't need, but at least they are not taking up any 
> space)
> 
> Now you can update and commit you entire WC and everything would work just 
> the way it should.
> 
> Cheers,
> 

Doesn't that just create a branch of a subset of folders?  With your scheme, in order to make my changes appear in the trunk wouldn't I have to merge my branch? I need the trunk to be updated with my changes.  
Would the merge be difficult as the directory trees are very different?  That seems to be more work than just checking out three subdirectories independently.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: How do I check out a subset of directories

Posted by Miha Vitorovic <mv...@nil.si>.
You could use this trick:

Create an empty folder in the repository (named /EMPTY or something like 
that). And leave it empty.

Check out entire trunk:

mkdir /home/user/wc
cd /home/user/wc
svn co svn://localhost/Trunk/

+---Trunk
    /.../
    +---Limit_Calculation
    +---List_Result
    +---Message
    +---Report
    +---Resource
    |   +---CustomHelp
    |   |   +---NotConnected
    |   |   \---SampleStatus
    |   \---Icon
    +---Sig_figs
    +---Userfiles
    +---Worksheet
    \---_Custom
        +---Data
        +---Message
        \---Report


Go into the working copy and switch all the directories you don't need to 
point to /empty

svn switch svn://localhost/EMPTY Limit_Calculation
svn switch svn://localhost/EMPTY List_Result
svn switch svn://localhost/EMPTY Message
... etc ..

And you have a single working copy containing only files that you need (+ 
some folders you don't need, but at least they are not taking up any 
space)

Now you can update and commit you entire WC and everything would work just 
the way it should.

Cheers,
---
  Miha Vitorovic
  Inženir v tehničnem področju
  Customer Support Engineer

   NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana,  Slovenia
   Phone +386 1 4746 500      Fax +386 1 4746 501     http://www.NIL.si

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org