Friday, August 24, 2012

How to pin TortoiseSVN to the Windows 7 Taskbar

I like to be able to open the TortoiseSVN repository browser directly from the Windows taskbar, so I did a quick search to find out how. I quickly found that people want to be able to do the same thing, but the replies were of the lines of
"Why would you want to do that? You should be opening the repo-browser by right clicking a folder in Windows Explorer, so you should never have any reason to pin it to the taskbar."
That's nonsense.

Sometimes I need to open the repo-browser simply to see if a project has already been added to SVN. Why should I have to open Windows Explorer and right click an arbitrary folder to start the repo-browser? Sounds like a silly design decision. And yet, they put a shortcut in your start menu that runs the command ""C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:rtfm" which basically does nothing but display a dialog telling you to "read the manual!". Thanks, dicks.

Anyway, here's how to pin the TortoiseSVN repo-browser to the Windows 7 Taskbar.

Copy the TortoiseSVN shortcut (or create a new shortcut) and change the Target to
"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:repobrowser
Your path to TortoiseProc.exe may be different.

Now right click the new shortcut then click "Pin to Taskbar".

Now when you click it on the taskbar it will open the window that will allow you to select which url to use.

If you'll always be using the same url, you can use the /path argument like so:
"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:repobrowser /path:"https://your/svn/url/" /notempfile
When opening from the taskbar, it will open the repo-browser using an additional icon on your taskbar. This is only while it's running and I don't know a way around it.