Storing your Subversion Repositories in your IE Favorites List





3.00/5 (1 vote)
Jan 24, 2007
2 min read

30356

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