第一步,在Custom Commands添加命令:
SVN Log
Tools->Custom Commands
添加一个命令
名字:SVN Log (随便自己写)
运行:"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:log /path:%f /notempfile /closeonend
TortoiseProc.exe的目录以自己电脑上的为是。
SVN Diff
Tools->Custom Commands
添加一个命令
名字:SVN Diff (随便自己写)
运行:"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:diff /path:%f /notempfile /closeonend
同样,添加命令 ShellExecute open %d 可以打开当前文件所在文件夹
第二步,把Options→Menu Assignments…
1. Select ‘Custom Cmd: SVN Log’ in the ‘Command’ field
2. Select ‘Work’ in the ‘Menu’ field
3. Click ‘Insert’ button (need click the ‘Menu Contents’ field first)
4. Use ‘Up’ or ‘Down’ to set the menu’s position
第三步,View→Toolbars→Source Control(这一步可以不用执行,执行上面两步以后就可以把work添加到 toolbar GUI)
Figure 1 - If you want to use the source control icon in the tool bar, you can select it as following:
Figure 2 - Show Source Control Toolbar
The following toolbar will be added to the GUI: