James Selvakumar’s Blog

March 14, 2008

Extending Subversion by using TortoiseSVN

Filed under: version control — James @ 5:56 pm
Tags: ,

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.

subversion-1

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.

About these ads

30 Comments »

  1. 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 | Reply

  2. 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 | Reply

  3. Thank you Ramesh for this great article.

    Comment by Affar — March 22, 2008 @ 7:40 am | Reply

  4. Thanks Affar for your comments.
    By the by, I’m James :-)

    Comment by James Selvakumar — March 22, 2008 @ 1:02 pm | Reply

  5. Sorry James.
    I don’t know how I missed your name.
    Sorry again…

    Comment by Affar — March 23, 2008 @ 10:18 pm | Reply

  6. 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 | Reply

  7. 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 | Reply

  8. 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 | Reply

  9. [...] – 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 | Reply

  10. [...] – 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 | Reply

  11. very clear and useful article. Thanks for your time and effort. Krishna

    Comment by Krishna — October 30, 2008 @ 10:47 am | Reply

  12. [...] 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 | Reply

  13. [...] 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 | Reply

  14. [...] – 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 | Reply

  15. [...] – 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 | Reply

  16. Gr8 James!!!
    I admire you.

    Thanks a lot………..

    Comment by Sajesh — November 20, 2010 @ 6:48 pm | Reply

  17. Gr8

    Comment by Sajesh — November 20, 2010 @ 6:50 pm | Reply

  18. 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 | Reply

  19. 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 | Reply

  20. thanks for your post!welcome to emaildb.

    Comment by Anonymous — February 19, 2011 @ 2:34 pm | Reply

  21. 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 | Reply

  22. A very nice tutorial.
    This was really helpful.

    Comment by Uchenna — April 13, 2011 @ 7:18 am | Reply

  23. 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 | Reply

  24. 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 | Reply

  25. This was really helpful.

    Comment by dresses karen millen — July 11, 2011 @ 9:43 am | Reply

  26. “Extending Subversion by using TortoiseSVN « James Selvakumar’s
    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 | Reply

  27. 本物デザイナーとではありません提供、不良アイテム。すべて動向はすぐに利用できるで、世界は単にになるコピーします。著者はと呼ばリーズが、彼女はいかなる状況下で本当に感謝は名。1 つのもの彼女はが大好き馬は運転、今彼女はしようとしてに受信現金を。が彼女はデラウェア州でされているが、彼女はする必要があります移動1日または別。彼女は、コンピューター演算子。場合に検索うちはるかチェック彼をweb サイト:

    Comment by prada 財布 — June 17, 2013 @ 7:48 pm | Reply

  28. 示されている変更肝主な肝臓肝硬変に。エミリー小麦メイナード所有者/エルバ フィールド デザイナーですない通常ジュエリーデザイナー。デザイナーサングラスは重要なと主要な企業現時点で。カシミヤのセーターとペア革レギンス、スリムズボンと膝-高ライダー
    ブーツ。 – トリーバーチ

    Comment by トリーバーチ — June 18, 2013 @ 11:39 am | Reply

  29. What you are going to require to don’t forget is that they make shampoos exclusively for animals. Liquorice, coconut oil and lime-pepper seeds are yet another. Inquiring inquiries to the interviewer assists to show him your qualifications and sophistications. Numerous of the evening bags highlighted brooch gildings.

    Comment by www.invitecompany.com — July 15, 2013 @ 11:44 am | Reply

  30. cheap authentic Blazers jerseys Only Review

    Comment by kxmyhjiqx@gmail.com — August 22, 2014 @ 8:32 pm | Reply


RSS feed for comments on this post. TrackBack URI

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

The Rubric Theme. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: