Accidental Technologist

Musings about Entrepreneurship, Technology and Software Development

  • Home
  • About
  • Still River Software
  • Privacy Policy

Powered by Genesis

You are here: Home / Programming / Simple Subverison Repository Setup with VisualSVN Server

Simple Subverison Repository Setup with VisualSVN Server

April 29, 2008 by Rob Bazinet

Tweet

I have been using some form of source control for what seems an eternity.  I started out using the copy-to directory method because source control did not really exist at the time.  More recently I have used both Microsoft Visual SourceSafe, SourceGear’s Vault and Team Foundation Server, all of which I use because of client-specific needs.

I have a few projects I am developing for my own company and choosing source control has really not needed much discussion.  I use Subversion for everything because it’s free, works really well, has great community support and support a wide-variety of clients on many operating systems.  The other products such as Vault and Team Foundation Server use Microsoft SQL Server and that is just one more license and database to maintain.

Since this is Subversion and my clients of choice are pretty open I use TortoiseSVN so I can access the repositories from Windows Explorer.  I also use VisualSVN which supports both Visual Studio 2005 and 2008 and integrates into the development environment, letting me checkout and check-in when the same way other source control clients work in Visual Studio.

Much of the time users of TortoiseSVN may be accessing an existing repository for an open source project or something existing for their job.  Most developers don’t have to setup their own Subversion repository, but when you do….there is a simple way from the creator of VisualSVN.   They have a free product called VisualSVN Server with will aid you in setting up and configuring your Subversion repositories.

VisualSVN Server

VisualSVN Server is a package that contains everything you need to install, configure and manage Subversion server for your team on Windows platform. It includes Subversion, Apache and a management console.

Installation

The download is only about 5MB and is a simple MSI setup application.  Running the setup you are faced with minimal questions, which can be answered easily.  The defaults seem to work pretty well.

VisualSVN-Setup

The only data needed:

  • Location – Where is the executable parts of Subversion going to live.
  • Repositories – Where all items under source control will be stored.  This would be a great directory, and all of its subdirectories,  to add to your automated backup solution.
  • Server Port – The two options are 8443 (default) and 443.  I just stuck with the default.
  • Use secure connection checkbox – will create its own certificate if this is selected.  I used this and it works very well giving the user a nice secure connection.

Installation takes less than a minute and you are done.

Server Manager

VisualSVN-ServerManager

Once installation is complete, running the VisualSVN Server manager presents the user with the screen above.  It gives a nice status screen telling us the health of the VisualSVN  server, in this case it says running.

We are able to now add Users, Groups and Repositories.

VisualSVN-CreateUser

The first thing I did was to add myself as a user, nothing difficult just a user name and password.  One of the options here is the ability to add Groups which would help with issues of security.  I don’t currently have a need for groups but who knows in the future.  This could be use for an open source project having a group for contributors and another with read-only access for those just interested in getting the source.

VisualSVN-CreateRepository

Creating the first repository is simple too, right-click on Repositories in the manager and select Create New Repository…, enter the name you want and leave the default structure checked and that’s it.  The new repository is created.

VisualSVN-Complete

Once it’s created it is easy to see the default structure we expect in our Subversion repositories with branches, tags and trunk.  You could probably have a simpler structure but I think why go away from what has emerged as a standard for the structure of a repository.

VisualSVN-Security 

Selecting a repository and choosing Security from the menu gives you a chance to setup any type of security here.  You could really lock it down or give access to previously created groups.  Again, my needs are really simple here so I have myself and will set everyone to No Access for now.

Connecting from TortoiseSVN

A Subversion repository is not very useful with having clients to connect to it.  I use two, as I mentioned before, TortoiseSVN and the VisualSVN client for Visual Studio. 

TortoiseSVN

Connecting to the new repository with TortoiseSVN gives us a prompt where we put in the user name and password created earlier and we are connected.  Granted, we don’t have a project in there yet but this shows it’s all working.

RepositoryUpdate

Brining down the only items in the repository, 3 empty directories. 

Connecting in Visual Studio with VisualSVN Client

VS2008-VisualSVN

I am not here to show anyone how to use source control from within Visual Studio.  I just want to demonstrate some coolness with setting up something so important as source control and have it all just work.  Connecting from Visual Studio to our existing repository is easy and as can be seen, it just works.  Plugging the URL to the repository, either local or remote and having a local place to put the files and you are done.

Finally

I looked at Git before settling on Subversion.  Git seems to be the hot new kid on the block but I am not sure of its value to a project if it is not open source.  Git seems to have distributed power but not much better in any other way. 

Scott Hanselman had a good podcast about Git, called Distributed Source Control with Git.

I think Subversion is a step above CVS from the open source side of things and different than SourceGear Vault and Team Foundation just because I didn’t have to deal with setting up and maintaining another SQL Server.

Technorati Tags: VisualSVN,Subversion,Source Control

Share this:

  • LinkedIn
  • Twitter
  • Facebook
  • Email
  • More
  • Pinterest
  • Tumblr
  • Pocket
  • Reddit

Related

Filed Under: Programming

Care about your privacy? I do and use Fathom Analytics on this site.

Fathom Analytics

Comments

  1. Simple Subverison Repository Setup with VisualSVN Server says

    April 29, 2008 at 1:33 pm

    RE: Simple Subverison Repository Setup with VisualSVN Server

    You’ve been kicked (a good thing) – Trackback from DotNetKicks.com

  2. Simple Subverison Repository S says

    April 29, 2008 at 1:33 pm

    RE: Simple Subverison Repository Setup with VisualSVN Server

    You’ve been kicked (a good thing) – Trackback from DotNetKicks.com

  3. Geek Daily » Blog Archive » Friday roundup for May2, 2008 says

    May 2, 2008 at 2:30 pm

    RE: Simple Subverison Repository Setup with VisualSVN Server

    Pingback from Geek Daily » Blog Archive » Friday roundup for May2, 2008

  4. Geek Daily » Blog Archive says

    May 2, 2008 at 2:30 pm

    RE: Simple Subverison Repository Setup with VisualSVN Server

    Pingback from Geek Daily » Blog Archive » Friday roundup for May2, 2008

  5. zoio says

    January 22, 2009 at 3:57 pm

    vai se fude vc e a porra do visual studio do cacete junto com a porra da microsoft

  6. zoio says

    January 22, 2009 at 3:57 pm

    vai se fude vc e a porra do visual studio do cacete junto com a porra da microsoft

  7. virtual gambling rules says

    May 28, 2009 at 2:53 am

    We are now using VisualSvn Server (Windows) and the latest AnkhSvn Visual Studio plugging for our "stuff" and so far, everything has worked out great. I’ve tried the VisualSvn client, but at present it looks like the latest version of Ankh is performing well. And I notice that Complex.com has just plugged in TortoiseSvn support with no funky "bridge" junk to install.

  8. virtual gambling rules says

    May 28, 2009 at 2:53 am

    We are now using VisualSvn Server (Windows) and the latest AnkhSvn Visual Studio plugging for our "stuff" and so far, everything has worked out great. I’ve tried the VisualSvn client, but at present it looks like the latest version of Ankh is performing well. And I notice that Complex.com has just plugged in TortoiseSvn support with no funky "bridge" junk to install.

  9. tommaso says

    June 17, 2009 at 8:27 am

    hi guys, I really need your help.
    here is the problem: I have a software project in the repository but I don’t want that some people access to one or more folders/files. If I set the security on those file everithing is ok. the problem is that, when I create a Branch I have to set again the security rule to access those critical folders/files. how can I do to ensure that access rules are inherited in the branch?
    please help me!!
    thank you very much!!
    Tommaso

  10. tommaso says

    June 17, 2009 at 8:27 am

    hi guys, I really need your help.

    here is the problem: I have a software project in the repository but I don’t want that some people access to one or more folders/files. If I set the security on those file everithing is ok. the problem is that, when I create a Branch I have to set again the security rule to access those critical folders/files. how can I do to ensure that access rules are inherited in the branch?

    please help me!!

    thank you very much!!

    Tommaso

  11. prolapsed hemorroids says

    July 29, 2009 at 10:37 am

    I’ve tried the VisualSvn client, but at present it looks like the latest version of Ankh is performing well. And I notice that Complex.com has just plugged in TortoiseSvn support with no funky "bridge" junk to install.

  12. prolapsed hemorroids says

    July 29, 2009 at 10:37 am

    I’ve tried the VisualSvn client, but at present it looks like the latest version of Ankh is performing well. And I notice that Complex.com has just plugged in TortoiseSvn support with no funky "bridge" junk to install.

  13. green laser pointers says

    July 30, 2009 at 1:14 pm

    I was seeking for the guide on how to setp my virtualSVN server. I was failed.

  14. green laser pointers says

    July 30, 2009 at 1:14 pm

    I was seeking for the guide on how to setp my virtualSVN server. I was failed.

  15. sagar says

    August 14, 2009 at 5:42 am

    NICE STUFF DUDE…..

  16. sagar says

    August 14, 2009 at 5:42 am

    NICE STUFF DUDE…..

  17. Internet story bookmarking says

    August 25, 2009 at 1:18 am

    I found several tutorials for setup a VisualSVN Server. This is the simplest one, I have to say. Easy, neat, clean and effective way. Big thanks.

  18. Internet story bookmarking says

    August 25, 2009 at 1:18 am

    I found several tutorials for setup a VisualSVN Server. This is the simplest one, I have to say. Easy, neat, clean and effective way. Big thanks.

  19. cheap nfl jerseys says

    September 7, 2009 at 9:24 pm

    I’ve tried the VisualSvn client, but at present it looks like the latest version of Ankh is performing well. And I notice that Complex.com has just plugged in TortoiseSvn support with no funky "bridge" junk to install

  20. cheap nfl jerseys says

    September 7, 2009 at 9:24 pm

    I’ve tried the VisualSvn client, but at present it looks like the latest version of Ankh is performing well. And I notice that Complex.com has just plugged in TortoiseSvn support with no funky "bridge" junk to install

  21. microwave oven reviews says

    September 18, 2009 at 12:01 pm

    Why I can’t added a new user?

  22. microwave oven reviews says

    September 18, 2009 at 12:01 pm

    Why I can’t added a new user?

Recent Posts

  • How to Fix Rails Flash Rendering When Using Hotwire
  • Hotwire Fix for CORS Error when using Omniauth
  • Fix Installation of Ruby using rbenv on macOS Big Sur
  • RailsConf 2021 and the Future of Conferences
  • Fixing Out of Diskspace Errors on Amazon EC2

Categories

Services I Love

HatchBox - Easy Rails Deploys Fathom Analytics
Follow @rbazinet

Rob Bazinet (ruby.social/@rbazinet)
@rbazinet

  • Working to wrap up my current consulting gig by mid-April. I will be looking for the next thing soon. If anyone has… https://t.co/sg3cSV9yqM
    about 12 hours ago
  • I’ve been spending some time using Notion AI lately and it surprisingly good. Since all the rage lately is ChatGPT,… https://t.co/cUXFWIRCVV
    about 3 days ago
  • I think these steps are true for any target audience. https://t.co/0ht6rIzOW3
    about 3 days ago
  • I’ve been enjoying a show from the Magnolia network called The Craftsman. It’s mainly about woodworking but his phi… https://t.co/sWTUBbSsl6
    about 4 days ago
  • I found the resource I was looking for last night that is similar to https://t.co/Pyn0IIjRdP, it is… https://t.co/U7TMe77FMF
    about 4 days ago
  • RSS - Posts
  • RSS - Comments
Find me on Mastodon