"Splitting" project into independent folders
On my earlier projects (school and side projects) I have mainly used one language per project and on my local machine I have a folder structure for my source code similar to
/home/me/coding
|
|____ c
| |___ project(c,1)
| |___ project(c,2)
|
|____ haskell
| |___ project(haskell,1)
|
|____ java
|___ project(java,1)
|___ project(java,2)
|___ project(java,3)
I use SVN for version control and have a repository on my uni's server and then access开发者_如何学C the repository through svn+ssh.
I am starting on a project initially based on existing code from some of my language folders and would like to keep the source code in different languages in their appropriate folders on my machine but can not work out how to do things with SVN such that I don't have to create and checkout the whole project into the folder of every language used in the project.
So basically I am asking how to, using svn or similarly, have version control of existing source code files in different folders, collectively forming a project, and not having to either have multiple versions of the whole project or creating one individual project per language used (because in that case I can not work out how to effectively version control the project "fused" of the language sub-projects)
Ok, what you're talking about are SVN externals: http://svnbook.red-bean.com/en/1.5/svn.advanced.externals.html
This will allow you to pull content from multiple different repositories - which is still maintained in those paths - and use them within a new project.
精彩评论