Martin
Martin

Reputation: 2971

Mixing repositories in tortoise

Will tortoise let me mix repositories in the same and if so how? What I would like is to store code, configs and binaries in separate repositories.

Upvotes: 4

Views: 890

Answers (3)

Álvaro González
Álvaro González

Reputation: 146573

Subversion allows almost all sort of mixed working copies. You can combine different revisions, different locations within the repository and even different repositories.

The feature you mention is accomplished with externals:

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

However, these mixed working copies that combine different sources can be difficult to deal with. When you make changes you have to remember this fact and do a different checkout for each source. And you cannot merge stuff between different repositories so you won't have a proper history.

Honestly, I see little reason to split one single project into three different repos.

Upvotes: 3

Lasse V. Karlsen
Lasse V. Karlsen

Reputation: 391634

You should look at externals, using the svn:externals property, this will allow you to have one repository, with external references to other repositories.

For instance, you can do this:

trunk/                         <-- repository A
   config/                     <-- repository B
   binaries/                   <-- repository C
   code/                       <-- repository A

You cannot, however, mix files from different repositories in one working copy, but you can use externals to check out sub-directories of your working copy from different repositories.

For more information about externals, check the svnbook: Externals Definitions.

Upvotes: 4

Jakob Kruse
Jakob Kruse

Reputation: 2494

If you mean whether one checkout can include stuff from multiple repositories, then no. You should use one repository with subfolders for code, configs and binaries.

Upvotes: 0

Related Questions