Multiple Directory Checkout

784 views
Skip to first unread message

Mr. Smith

unread,
Jul 10, 2009, 2:30:33 PM7/10/09
to us...@tortoisesvn.tigris.org
In previous versions of tortoise (1.3) I was able to checkout muiltple
directories by doing the following:

In the repo browser, select all the folders you want (hold down Ctrl key
while clicking on the items). Then right-click, choose "checkout".

I am not able to do this anymore in the new version (1.6).

I know this has been brought up before, but can't I have a folder with
multiple checkouts at different directories of the same repo? I don't
want to have to checkout each one separately. It would be really
helpful if i didn't have to update each separately and could just svn
update on the top folder that contains all the separate checkouts.

So basically what I am looking to do is have a folder on a
production/test computer with one folder (for the brand) that has
checkouts for the various programs (obviously in different folders in
the repo). Then when it is time to test or deploy, all that is needed
in one update.
Here is repo:

/company
/company/product
/company/product/program1/release
/company/product/program2/release

and I want a checkout with:

/company/program1 (which points to /company/product/program1/release)
/company/program2 (which points to /company/product/program2/release)

Is there another way to achieve this without manual checkouts? Is
there a way to update all checkouts (program1, program2) just from the
company folder?

Thanks-

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2369967

To unsubscribe from this discussion, e-mail: [users-un...@tortoisesvn.tigris.org].

Simon Large

unread,
Jul 10, 2009, 3:54:13 PM7/10/09
to us...@tortoisesvn.tigris.org
2009/7/10 Mr. Smith <abbas...@gmail.com>:

The easiest way to do that would be with svn:externals. Create a local
repo with a folder called Company and checkout Company (empty folder).
Now set svn:externals properties on that folder:
http://domain.com/svn/company/product/program1/release program1
http://domain.com/svn/company/product/program2/release program2

That should do exactly what you want. Updating the local repo's
Company folder will pull in the release directory from the live repo
to a folder name of your choosing.

Simon

--
: ___
: oo // \\ "De Chelonian Mobile"
: (_,\/ \_/ \ TortoiseSVN
: \ \_/_\_/> The coolest Interface to (Sub)Version Control
: /_/ \_\ http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2370118

Mr. Smith

unread,
Jul 11, 2009, 4:59:50 PM7/11/09
to us...@tortoisesvn.tigris.org
I get what you're saying but there are 2 issues with the external
setting:

1-The user has to manually setup each external. It would be much
faster and accurate with the control click in repo method.
2-The company folder now has these external links associated with it
on the client. It'll change icon and look like it needs to be commit
right? If a user needs to commit a file (lets say a settings file)
they have to remember to uncheck the company folder or the externals
will be commited.

While externals 'could' work, it seems kinda hacky as it is not mean't
for this. I guess there is no way to just cherry pick checkout
directories? Seems like it should be in there and needed right?
I'm still a bit curious why this feature (ctrl+click on repo) worked
in the past and not in the newer version?

On Jul 10, 2:54 pm, Simon Large <simon.tortoise...@googlemail.com>
wrote:
> 2009/7/10 Mr. Smith <abbasmit...@gmail.com>:

> Now set svn:externals properties on that folder:http://domain.com/svn/company/product/program1/release  program1http://domain.com/svn/company/product/program2/release  program2


>
> That should do exactly what you want. Updating the local repo's
> Company folder will pull in the release directory from the live repo
> to a folder name of your choosing.
>
> Simon
>
> --
> :       ___
> :  oo  // \\      "De Chelonian Mobile"
> : (_,\/ \_/ \     TortoiseSVN
> :   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
> :   /_/   \_\    http://tortoisesvn.net
>

> ------------------------------------------------------http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMess...
>
> To unsubscribe from this discussion, e-mail: [users-unsubscr...@tortoisesvn.tigris.org].- Hide quoted text -
>
> - Show quoted text -

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2370691

Simon Large

unread,
Jul 12, 2009, 3:13:32 PM7/12/09
to us...@tortoisesvn.tigris.org
2009/7/11 Mr. Smith <abbas...@gmail.com>:

> I get what you're saying but there are 2 issues with the external
> setting:
>
> 1-The user has to manually setup each external.  It would be much
> faster and accurate with the control click in repo method.

In principle you could checkout multiple items in one hit - not sure
why this is no longer available - but the directory they are checked
out into would be unversioned, so there is no way to use Update on it.
You would have to select all the versioned subdirectories and Update.

> 2-The company folder now has these external links associated with it
> on the client.  It'll change icon and look like it needs to be commit
> right?  If a user needs to commit a file (lets say a settings file)
> they have to remember to uncheck the company folder or the externals
> will be commited.

What would they need to commit? The Company folder in this case is
only there as a placeholder to hold the externals. There is nothing to
change.

> While externals 'could' work, it seems kinda hacky as it is not mean't
> for this.  I guess there is no way to just cherry pick checkout
> directories?  Seems like it should be in there and needed right?
> I'm still a bit curious why this feature (ctrl+click on repo) worked
> in the past and not in the newer version?

Simon

--
: ___
: oo // \\ "De Chelonian Mobile"
: (_,\/ \_/ \ TortoiseSVN
: \ \_/_\_/> The coolest Interface to (Sub)Version Control
: /_/ \_\ http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2370787

Daniel Becroft

unread,
Jul 12, 2009, 6:43:24 PM7/12/09
to us...@tortoisesvn.tigris.org
If it's purely naming convention you are looking for, then you could do the following:

svn co /company/product ./company

This will make the 'company' folder a working copy of the /company/product folder. This does make it slightly less obvious as to where 'company' is checked out from. 

Unfortunately, because /program1 and /program2 are not direct children of the /company directory, I don't think sparse checkouts are an option (although I could be wrong).

Cheers,
Daniel B.


Reply all
Reply to author
Forward
0 new messages