Click here to Skip to main content
15,897,718 members
Articles / Operating Systems / Windows

Storing your Subversion Repositories in your IE Favorites List

Rate me:
Please Sign up or sign in to vote.
3.00/5 (1 vote)
23 Jan 20072 min read 30.1K   59   16   3
How to register the "svn" protocol and create Subversion links in your IE Favorites list.

Introduction

I have a list of 35 Subversion repositories that I need from time to time. It is printed up and stapled to the wall next to my monitor. Today, I was thinking that it sure would be nice if I could keep those in my IE Favorites list. Unfortunately, when I tried to add one, IE said it didn't know how to handle the svn protocol. A little digging led me to an MS site with instructions on how to register a new protocol with the OS.

I followed the steps and registered the svn protocol to TortoiseProc.exe. Now, IE launches the Repo-Browser and attaches to the desired repository when I click on a shortcut that contains a svn://... URL in my Favorites list.

Wheee!

The steps are outlined below. If you don't want to perform the steps yourself, you can download the reg file to do it for you. The reg file is just a text file, and if you don't trust me, you can open it up in a text editor and see for yourself that it is benign.

First, register the svn protocol on your system. Currently, the OS doesn't know about svn, so it needs to be registered as a protocol.

  • In the Registry, under HKEY_CLASSES_ROOT, create a new key named "svn".
  • Under the "svn" key, create two new keys: "DefaultIcon" and "shell".
  • Under "shell", create "open", and in there, create "command".

Your key tree should look like this...

HKEY_CLASSES_ROOT
 |
 -- svn
    |
    -- DefaultIcon
    -- shell
        |
        -- open
            |
            -- command
  • In the (default) value under svn, set data = "URL:SVN Protocol".
  • In the (default) value under DefaultIcon, set data = C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe.
  • In the (default) value under command, set data = C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe /command:repobrowser /path:"%1".

Next, browse to your Favorites directory and create a folder called "Subversion Repositories". In that directory, right click and select "New | Shortcut".

  • In the location box, type the svn://... URL to the repository and click Next.
  • Give the new shortcut a useful name, and click Finish.

Now, when you open up your Favorites in IE, there will be a folder called "Subversion Repositories". When you click on one, it launches Repo-Browser and connects to the desired repository.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Architect Hewlett-Packard
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Generalanother trick.. Pin
pauljenkins71429-Jan-07 15:11
pauljenkins71429-Jan-07 15:11 
Generalno need to manually add the registry key Pin
SteveKing23-Jan-07 19:52
SteveKing23-Jan-07 19:52 
GeneralRe: no need to manually add the registry key Pin
Phillip H. Blanton24-Jan-07 5:38
Phillip H. Blanton24-Jan-07 5:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.