Reputation: 1187
We are using ankhsvn to check in our .net code, however I have two issues with our setup that I want to resolve.
1\ I thought a key reason to have a tool like svn is that you can rollback to an earlier version of your codebase. If developers are just checking in code, then how can you get version 1.1 (say the current production build), out of subversion?
2\ In VS you have the concept of solutions, many solutions might use the same project. How do I make sure when a developer checks out a solution, they get the appropriate versions of the projects that belong to that solution?
Upvotes: 4
Views: 2209
Reputation: 946
For issue 2:
You can use the svn:externals
property to associate the appropriate version of a project to a solution, if the project code is stored in different directories within the svn repository than the solutions. If you set the externals property on the solution's trunk to point to a tag, the version of the project that has been tagged will be checked out with the solution.
I don't know if the AnkhSVN interface provides a way to add the externals property as I typically use the TortoiseSVN repository browser for the task.
I will second the recommendation to read the Red Bean book.
Upvotes: 1
Reputation: 1187
To create a "Tag" (new version of the application) in ankhsvn:
To automatically switch your working copy to the new branch, select Switch to Branch after creation.
Note: If your working copy has modifications, those changes will be merged into the working copy of the branch when you switch.
This is a pretty crappy solution, far too manual for my taste (it does not "know" the original projects location, I don't want the process to be that onerous) what I really want is one button click to do this job, so will keep investigating.
Upvotes: 1
Reputation: 308938
I'd recommend reading the SVN Red Bean book.
Upvotes: 5