TortoiseSVN in Visual Studio 비주얼스튜디오 SVN 연동 팁
TortoiseSVN in Visual Studio
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.
Ever wanted to use TortoiseSVN from VisualStudio? Well, now you can! 1
Contents
Introduction
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.
Menu
Select Tools > External Tools… from the Visual Studio menu. Add a tool using the following info.
Field | Value |
---|---|
#1 | |
Title | Tortoise &Update |
Command | C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe |
Arguments | /command:update /path:"$(SolutionDir)" /notempfile |
#2 | |
Title | Tortoise &Log |
Command | C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe |
Arguments | /command:log /path:"$(SolutionDir)" /notempfile |
#3 | |
Title | Tortoise Check for &Modifications |
Command | C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe |
Arguments | /command:repostatus /path:"$(SolutionDir)" /notempfile |
#4 | |
Title | Tortoise Re&vert |
Command | C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe |
Arguments | /command:revert /path:"$(SolutionDir)" /notempfile |
#5 | |
Title | Tortoise &Commit |
Command | C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe |
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.
Toolbar
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:.
Icons
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.
Done
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.↩
'버전관리' 카테고리의 다른 글
Visual Studio 2010 SVN plug in 설정 (0) | 2012.11.01 |
---|---|
VISUAL STUDIO 2010에서 SUBVERSION(SVN) 사용 (0) | 2012.11.01 |
Tortoise SVN :: 소스세이프(Source Safe)보다 좋은 버전관리 프로그램 (1) | 2012.10.31 |
visual studio + subversion SVN , winmerge 설정 (0) | 2012.10.31 |
Tortoise svn 사용법 게임 개발자를 위한 SVN -5- (0) | 2012.10.31 |