Installing VisualSVN Subversion
Wrapping up HeadSpring's Agile Boot Camp class this week, we're installing VisualSVN Server locally. Running the setup is just a matter of hitting Next three times - it's very simple. Running the visual server window yields this opening screen:
Next, right click on VisualSVN Server and select Properties:
These are basically the same settings you had available from the installer. Assuming these settings are fine, the next step is to create a user. Go back to the main screen and right click on Users, Create User.
Once a user is created, the next step is to create a repository. Be sure to check the box to set up the default structure.
At this point, the server end of things is done. If you want to set up a working folder on your local machine to point to this, go to a folder (like C:\working\) and assuming you already have TortoiseSVN installed, right click and select in the folder and select SVN Checkout:
Configure the URL and local directory:
Once this is done, you can also see at any time how the folder is mapped to its subversion location by looking at the folder's properties.
At this point you're ready to create your initial sub folders and work on your project.
Too easy. And oh by the way this also just installed Apache Server, so if you've ever wanted to do that but weren't sure how difficult it would be - you just did it.
If you're moving an existing project into this working folder and you want to add it to source control, you're best off using VisualSVN from within Visual Studio to do so. Open the solution in Visual Studio, and then assuming you have VisualSVN client installed, you should be able to right click on the solution and select Add to Subversion.
If you don't see that option on the solution, you'll want to delete the .svn folder from the working folder and then go through the process, stating that you'll set the working folder manually.
Now right click on the folder in Windows Explorer and SVN Commit. Your code is now in a local copy of subversion. Note that you can use this to version any files! If you want to version your word documents or graphic files you're editing or anything you like, this will let you do it. Just be sure you're backing up your hard drive, since this isn't a substitute for backing up your disk. But it will give you local revision history so you can undo changes to any document.




Comments
Aaron Seet (icelava) said on 07 Oct 2008 at 5:59 AM
Mmmm i was kinda confused when Subversion 1.5 was release; it no longer released a workable copy of Subversion server and left 3rd-party distrubtion party to finish that up. I was wondering which distributor to stick with.
I think your coverage showed me an important feature that will sway my decision - VisualSVN supports Windows authentication. From the looks of the interface, it naturally ties in with AD domains as well. But, is that correct?
Also, have you tried VisualSVN for Visual Studio on niche project types like SSRS, SSIS, BizTalk projects?
Aaron Seet (icelava) said on 15 Oct 2008 at 5:48 AM
I have tried VisualSVN server myself, and the documentation specifies natural operation with domains.
Robz said on 22 Oct 2008 at 2:31 PM
I love Visual SVN Server for the simplicity. One thing I would like to see is anonymous access built into it. There is a way to get it with VisualSVN, but there are two things you have to do (one of which is editing your apache http configuration file).
Rick Strahl posted about this recently and I followed up with more information:
ferventcoder.com/.../enhancing-visua