Though Subversion is a powerful version control system, it’s command-line based interface may not appeal to some users who used other version control systems like Visual Source Safe. And what if you want to remotely access your repository as well?
TortoiseSVN and Apache comes to your aid. TortoiseSVN is a powerful tool for Subversion, which helps you to issue most of the subversion commands from your windows explorer. Subversion has an inbuilt “svnserve” utility which helps you to expose your repository to remote users, but it’s highly recommended to use the flexible Apache Web Server for this purpose. Subversion comes with it’s own apache modules to expose your repository to remote users. However, in this article we will not focus on Apache. I’m planning to write about the apache integration in my next post. Please be patient
Objective:
In this article you will learn how to install Subversion and TortoiseSVN and use them to create a repository, import files into the repository and view the repository.
Step 1: Install Subversion
Download subversion windows installer for Apache 2.2.x. (Download the file called “svn-x.y.z-setup.exe” and run the installer. Installing should be a straight forward option.
You might see the following windows. They are self explanatory.






Now you should have subversion successfully installed in your machine. To verify that, open the command prompt and type “svn –version”. If you see something like below, pat your head, you have successfully installed subversion.

If you couldn’t see the above mentioned message, you might want to check your “Path” environment variable and add your subversion installation directory to the “Path”.
Step 2: Install TortoisSVN
Download TortoiseSVN from here.



That’s it. Now the installer setup might prompt you to restart your system to complete the installation process. Accept it.
Step 3: Create a Subversion Repository
Now, it’s time to create a subversion repository. Though it’s possible to use the subversion’s “svnadmin” command to create the repository, we will use TortoiseSVN to achieve that.
3a) First, choose a appropriate location to keep all your repositories. In my case it’s “F:\Subversion”. Let us call this folder as REPOSITORY_ROOT. Now, let us create an empty directory called “MyRepository” inside REPOSITORY_ROOT. It should look something like this:

3b) Now, right click inside the folder REPOSITORY_ROOT\MyRepository, and click “TortoiseSVN -> Create repository here” menu.

3c) TortoisSVN will now prompt you with a message box like this:

Leave the default option (Native file system), and click “OK”. You can see a bunch of files inside the “MyRepository” folder like this:

Great!! This is your subversion repository.
Step 4: Import files into your subversion repository
4a) Let us add some files inside our newly created subversion repository. Right click a folder of your choice and click “TortoiseSVN -> Import”

4b) Enter the appropriate repository path where you would like to import these files into. In my case it’s “file:///f:/subversion/myrepository/photos”.

4C) When you press “OK”, TortoiseSVN will import all the files/folders inside the folder which you selected for the import operation into the subversion repository.

4D) Press “OK”. Now we have finished importing the files into our new subversion repostiory. It’s now time to view the content of our repository.
Step 5: Viewing the content of your subversion repository
5a) TortoiseSVN provides a nice “Repository Browser” option to view the content of your subversion repository. Right anywhere in your explorer window/desktop and click “TortoiseSVN -> Repo-browser”.

5B) Enter the url of your subversion repository. In my case, it’s “file:///f:/subversion/myrepository” and click “OK”.

5C) That’s it, now TortoiseSVN will list down all the files inside your repository.

Summary:
In this article, you learned to:
- install Subversion
- install TortoiseSVN
- create a new repository using TortoiseSVN
- import files into the subversion repository using TortoiseSVN
- view the content of the subversion repository using TortoiseSVN
What next?
I initially thought of even writing about installing, configuring apache/websvn in this article itself. But it already took me nearly 3 hours to finish writing this. So please bear with me. I’ll come with a Part II of this article where you will learn how to use apache/websvn along with subversion to make the interaction with your version control system a pleasure. See you again.
Added on August 2, 2008:
I have written an article named “Extending Subversion with Apache“. This article is about setting up Apache http server and configuring it to access subversion repositories. It also deals how to setup Authentication and Access control for your subversion repositories using Apache. Hope you find it useful.
I’ve been using TortoiseSVN for over 3 years and love it. Very recently I jumped boat to Mercurial(hg). Just like TortoiseSVN there is TortoiseHg, has a lof of catch up to do.
Mercurial is a Distributed Version Control System, so you can do commits even offline(sweet). In addition HG is lightening fast and comes with builtin Web support so you can publish and share your repositories on the web. Hg has integrations with NetBeans and Eclipse if you ar eon the Java bandwagon.
Just my 2 cents
Comment by Ramesh B — March 14, 2008 @ 6:20 pm |
Hi Ramesh,
Ya I’ve been hearing a lot about Mercurial these days. And recently, NetBeans switched their source code repostiory completely to Mercurial. I’m looking forward to evaluate mercurial as well. It would be great if you can point out some good article/tutorial to help me started with mercurial.
Comment by James — March 15, 2008 @ 1:17 am |
Thank you Ramesh for this great article.
Comment by Affar — March 22, 2008 @ 7:40 am |
Thanks Affar for your comments.
By the by, I’m James
Comment by James Selvakumar — March 22, 2008 @ 1:02 pm |
Sorry James.
I don’t know how I missed your name.
Sorry again…
Comment by Affar — March 23, 2008 @ 10:18 pm |
Hi Selvakumar,
Such a nice compilation of the setup of Subversion and TortoiseSVN.
I appreciate your great job. Your effort of about 3 hours helped me a lot to do things in 15 minutes.
Thanks.
Comment by Chandramohan.P — June 20, 2008 @ 11:38 am |
Hi Selvakumar,
Thanks for such precisely complied set by set doc….
Great Job
Kanwar
Comment by Kanwar Gurvir Singh — July 4, 2008 @ 6:05 am |
Ever since the upgrade to TSVN 1.5 there are some small differences.
Here is a link to a few 5 minute videos that show how to use the new SVN (no prior experience required).
Hopefully they help you as well.
http://pollvu.blip.tv/
hamy
Comment by hamy — July 12, 2008 @ 9:42 pm |
[...] – Subversion Version Control System(Got excellent integration with NetBeans and Eclipse. You must consider it atleast for your personal development.) You can read more about installing subversion here. [...]
Pingback by gogetauro.com » Blog Archive » Must have tools for a Java Developer — August 14, 2008 @ 9:40 am |
[...] – Subversion Version Control System(Got excellent integration with NetBeans and Eclipse. You must consider it atleast for your personal development.) You can read more about installing subversion here. [...]
Pingback by AurosBlog » Must have tools for a Java Developer — September 3, 2008 @ 11:36 am |
very clear and useful article. Thanks for your time and effort. Krishna
Comment by Krishna — October 30, 2008 @ 10:47 am |
[...] one of my previous post, I explained about using TortoiseSVN with subversion. Continuing in the same vein, we will see how [...]
Pingback by Extending Subversion with Apache | SolitaryGeek — July 28, 2009 @ 4:28 pm |
[...] You can read this article to learn how to install/configure Subversion and [...]
Pingback by Subversion and NetBeans – A quick start guide | SolitaryGeek — July 28, 2009 @ 4:30 pm |
[...] – Subversion Version Control System(Got excellent integration with NetBeans and Eclipse. You must consider it atleast for your personal development.) You can read more about installing subversion here. [...]
Pingback by Must have tools for a Java Developer | SolitaryGeek — August 19, 2009 @ 4:09 pm |
[...] – Subversion Version Control System(Got excellent integration with NetBeans and Eclipse. You must consider it atleast for your personal development.) You can read more about installing subversion here. [...]
Pingback by Must have tools for a Java Developer | TechiePark — October 5, 2009 @ 6:26 am |
Gr8 James!!!
I admire you.
Thanks a lot………..
Comment by Sajesh — November 20, 2010 @ 6:48 pm |
Gr8
Comment by Sajesh — November 20, 2010 @ 6:50 pm |
Great little introduction to start using TortoisSvn, just what I was looking for!
Thank you.
Jerome.
Comment by Jerome — November 30, 2010 @ 9:03 pm |
there is a very awesome movie story which I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you blog post,thanks for your post!welcome to movie.
Comment by Anonymous — February 17, 2011 @ 10:47 am |
thanks for your post!welcome to emaildb.
Comment by Anonymous — February 19, 2011 @ 2:34 pm |
I always knew that the networks are interesting places such as these. I’ll come back to you shortly..
Comment by Anonymous — March 29, 2011 @ 8:02 am |
A very nice tutorial.
This was really helpful.
Comment by Uchenna — April 13, 2011 @ 7:18 am |
Just stumbled upon this wonderful article.This is extremely exciting.I’ve bookmarked it and will come back routinely.Hope to see more such articles.file_links\xrumer_resource\km_sig.txt,1,L]
Comment by Anonymous — June 4, 2011 @ 5:05 am |
Just stumbled upon this wonderful site.This is extremely exciting.I’ve bookmarked it and will come back routinely.Hope to see more such articles.Herve Leger Outlet
Comment by TRIZSHISCET — June 10, 2011 @ 4:59 am |
This was really helpful.
Comment by dresses karen millen — July 11, 2011 @ 9:43 am |
“Extending Subversion by using TortoiseSVN James Selvakumars
Blog” seriously got myself addicted on your web-site! I personallydefinitely will wind up being back again a lot more frequently.
Thanks a lot -Noel
Comment by http://tinyurl.com/paullomax32921 — January 9, 2013 @ 11:31 am |