Prash's Blog

Set up subversion on windows machine April 27, 2012

Filed under: Uncategorized — prazjain @ 10:53 pm
Tags: , , , ,

Today I setup Subversion on my home machine, after postponing it for ages.

Server : VisualSVN : Standard Edition Free

Client : TortoiseSVN

Client for Visual Studio : AnkhSVN

Installation of all of them was a breeze.

When setting up the server:

  • Set installation Dir like J:\documents\svnserver\
  • Set repository dir like J:\documents\svnserver\repositories
  • Use VisualSVN Manager to create a dir in repositories like First, this will also ask you to setup a user. For now setup a user : Test, password : Test
  • Create a project structure in repository directory First like MyFirstProject. This dir will then have 3 basic dir inside i.e. branch, tag, trunk.
  • Now navigate to repository directory on server, you will see a directory by name “First”.
  • Now create a directory “MyFirstProject” in “First” directory.
  • Navigate to the directory MyFirstProject in local file system, and add one file or number of files. Right click on MyFirstProject and go to TortoiseSVN import.

 

  • Choose trunk directory in svnserver and enter login details when asked, this will add these files to svn trunk for this project.

 

  • Navigate to any directory on local file system, right click and go to tortoiseSVN -> Repo Browser -> Enter the repo url -> right click on the directory you want to get, and choose checkout.

 

 

 

  • This will get all the code / files from that svn directory into your folder and you can now start working through svn and checkin-checkout files.
Advertisements
 

2 Responses to “Set up subversion on windows machine”

  1. You do not specify ‘where’ you perform the actions.

    E.g.:

    * Create a project structure in repository directory First like MyFirstProject. This dir will then have 3 basic dir inside i.e. branch, tag, trunk.

    You do this in VisualSVN Server Manager. Am I correct?

    * Navigate to the directory MyFirstProject in local file system, and add one file or number of files. Right click on MyFirstProject and go to TortoiseSVN import.

    What application do you use to navigate to ‘MyFirstProject’ on your system? Subversion repository content’s can’t be viewed without Subversion client.

    • prazjain Says:

      Mate, I have updated the post to include screenshots, so it adds more clarity to the topic.
      1) Yes it is VisualSVN Server.
      2) Well I have installed both server and client on my machine so for me it is same machine but different directories. But yes in this step I am talking about the server / server directory structure, so go to j:\documents\svnserver\repositories\First and create directory “MyFirstProject”, add some file / content to it and import it into project’s trunk directory in SVN. Then later on when you use client, the server is give you files from this directory.
      Hope that helps.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s