问题
I am relatively new to using TortoiseSVN for source control. I am developing a system that contains many .NET project files (a solution can contain many projects). I have one repository and the trunk contains all the projects. What do you do if you want to make a change to a project that references another project. Do you put both projects in the same branch? I have bought a book titled 'Subversion' but it will not arrive for a few days.
回答1:
The project files and the source control aren't coupled to one another. Any "branch" is going to include the entire source tree, not individual "projects." (The source control system in this case, SVN, has no knowledge of what a "project" is or how it differs from anything else. It's just a text file in the source tree.)
You should branch at the root of the entire codebase, essentially making the branch be a fully self-sustainable version of the codebase.
回答2:
You have a few choices you can make here.
You can have a separate repository for each project. Each one has /branches, /tags, and /trunk and nothing else under the root.
You can have one repository with multiple sub-folders, one for each project. Each sub-folder has its own /branches, /tags, and /trunk underneath.
来源:https://stackoverflow.com/questions/17366192/branch-to-project-relationship