Update October 2 2007: Someone posted a link to Gary’s Bit Patterns where there is a settings file you can just import instead of doing all these manual steps.
I also fixed the quotes in the commands so they shouldn’t cause trouble anymore.
I have created a toolbar with Update, Log, Check, Revert, and Commit . The commands work the same as if you right clicked the folder containing the solution. Follow the steps below to get your own tortoise toolbar.
Select Tools > External Tools… from the Visual Studio menu. Add a tool using the following info.
|Arguments||/command:update /path:"$(SolutionDir)" /notempfile|
|Arguments||/command:log /path:"$(SolutionDir)" /notempfile|
|Title||Tortoise Check for &Modifications|
|Arguments||/command:repostatus /path:"$(SolutionDir)" /notempfile|
|Arguments||/command:revert /path:"$(SolutionDir)" /notempfile|
|Arguments||/command:commit /path:"$(SolutionDir)" /notempfile|
- $(SolutionDir) is the path to the directory the solution is in
- /notempfile is required when running from the command line
- The ampersands make that letter a shortcut for use in the menu
You should have the commands in your tools menu. Try them out and make sure they all work.
Add the toolbar by right-clicking your toolbar and select customize. Make a new toolbar and call it Tortoise. Close the customize window and right-click again, this time adding the tortoise toolbar.
Now go back to customize, select the commands tab, and scroll down to the tools category. You should see a bunch of commands like External Command 1, External Command 2, etc. Drag those on to your new toolbar. This may require some trial and error.
You can rename the commands in the toolbar by selecting a button with the customize window open, then clicking the Modify Selection button, then Name:.
Now to add the icons. I haven’t found an easy way to do this yet. Here’s what I did:
Go to http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk/src/Resources/ (user guest, blank password). Browse to the image you want then right click the image and select Copy Image (note: this was on Firefox). With the customize window open right click the button and select Paste Button Image.
The pasted image won’t be transparent, so you need to edit the image. Right-click and select Edit Button Image. Then erase all the black area.
Your toolbar should look something like this:
- Well, you could have before if you wanted. I’m sure I’m not the first to come up with this. I know a few people already do this because it came up on the TortoiseSVN mailing list a while back.↩