How CVS Differs from Microsoft Visual Source Safe?
TortoiseCVS differs from Visual Source Safe? (VSS) in many ways. The most apparent difference may be that TortoiseCVS does not require users to lock the files they are working on, as VSS does by default. In fact, the CVS documentation even encourages users not to use file locking. In the rare occasion where several people have changed the same file at the same time, CVS will normally be able to merge their changes. If two or more developers have changed the same few lines, TortoiseCVS will report a conflict, insert directives in the file, and leave it to the developers to decide what to do. Such conflicts are very rare, as they normally occur as a result of lacking communication between the developers (eg. two people trying to fix the same problem).
Another important difference is that VSS gives you a server view, while TortoiseCVS shows a client view. In practice this means that, unlike VSS, TortoiseCVS will not tell you about changes in the repository until you do an update, or explicitly query the status of selected files. Changes reported by TortoiseCVS reflect modifications done by you after the last checkout, update or commit.
CVS 和 Microsoft Visual Source Safe?
TCVS和Visual Source Safe? (VSS) 很多地方不同. 最明显得一点是TCVS不需要锁定正在处理的文件,而VSS默认锁定t.实际上, CVS 文档鼓励用户不使用文件锁定. 几个用户同时修改同一个文件的可能性是很小的, CVS 可以正常的合并他们的冲突. 如果两个或几个人修改了文件的相同行, TortoiseCVS 将包括冲突, 在文件中插入指示, 让开发员决定如何解决. 这种冲突非常稀少, 通常只是出现在缺少沟通的情况下导致如此结果 (例如两个人试图解决同一个问题).
另外一个重要的不同,VSS 是显示服务器视图, TortoiseCVS显示客户端试题. 从实际上来说, 不像 VSS, TortoiseCVS不会主动通知你仓库的变化,除非你自己进行更新, 或者询问一些文件的状态. TortoiseCVS包括的修改状态只是反应你最后一个取出、更新、提交之后的修改
Creating new icons for TortoiseCVS
TortoiseCVS icons are Windows icon files that are overlaid on top of source code file icons in Explorer to show their status in CVS. The reason this technique works is that most of the area in a TortoiseCVS icon is transparent, allowing the source icon to show through. If you are designing your own TortoiseCVS icon set, you'll need to strike a careful balance between visibility of the original file and easy viewing of CVS states. Some icon sets achieve this balance by adding a distinctive colour or shape to one corner of each icon; others achieve the illusion of shading the entire icon by alternating transparent pixels with coloured ones. You can even combine these two ideas of unique shapes and semitransparent shading: see the "NG" icon set that ships with TortoiseCVS for an example.
Create your icon set using a graphics editor. For the best viewing results, you should create 16x16, 32x32, and 48x48 versions of each icon. The icon editors that ship with the Borland and Microsoft compilers can do this task easily, as can most shareware icon editors. If you prefer to stay with free software, you can use The GIMP to create a PNG file for each icon size, and then combine them together with png2ico.
Make sure you have created one correctly-named icon for each of the seven possible CVS states: TortoiseNotInCVS.ico, TortoiseInCVS.ico, TortoiseInCVSReadOnly.ico, TortoiseChanged.ico, TortoiseConflict.ico, TortoiseAdded.ico, and TortoiseIgnored.ico.
Create a folder inside the directory where you installed TortoiseCVS, name it something that matches the theme of your icon set, and copy your seven new icon files into the new folder.
Open the Registry Editor (Click Start → Run and type regedit). Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\TortoiseCVS\CustomIcons. Inside this key, create a new string value. For the name of this new value, type in the name that you would like to call your new icon set. Double-click on the new value to set the actual data, which is the name of the folder you created in step 3.
为TortoiseCVS创建新图标www.shengfang.org
TortoiseCVS 图标是Windows图标文件,它们重叠在源码图标上,在资源管理器上显示 CVS状态. 这个技术的原理是TCVS的图标大部分区域都是透明的, 允许源码图标穿透显示如果你想设计自己的图标,你需要小心的权衡原有文件图标的可见度以及明显得CVS状态显示. 有些图标达到这种平衡,增加醒目的颜色,遮盖每个图标的角落; 有些用彩色进行交互透明象素. 你可以集合这两个唯一遮盖主意和半透明遮盖: 参见 "NG" 图标,TCVS的例子.
用一个图象编辑器制作图标. 为了最佳显示效果,每个图标应该创建32*32,16*16、48*48版本. Borland and Microsoft 编译器自带的就不错, 能够达到大多数共享软件的效果.如果你喜欢免费软件,使用 The GIMP 为图标每个尺寸制作一个PNG文件, 用 png2ico 转换.
你要为CVS的七种状态制作正确的图标命名: TortoiseNotInCVS.ico, TortoiseInCVS.ico, TortoiseInCVSReadOnly.ico, TortoiseChanged.ico, TortoiseConflict.ico, TortoiseAdded.ico, and TortoiseIgnored.ico. www.shengfang.org
在TortoiseCVS的安装目录下创建文件夹, 用符合你图标主题命名,把七个新图标拷贝进去.
打开注册表 (点击 开始-允许 输入 regedit). 定位到 HKEY_LOCAL_MACHINE\SOFTWARE\TortoiseCVS\CustomIcons. 在这个键值里面, 创建新的字符串值,在名称处输入你的图标命名,双击新值,输入实际数据,你在第三步定义的文件夹名称.
Using PuTTY sessions
If you need different SSH parameters for different hosts, you can do so by using a feature of the PuTTY suite called sessions.
Download the PuTTY suite from the PuTTY site.
Run putty.exe and enter the required parameters, then enter an appropriate session name below the Saved Sessions label, and click Save.
In the TortoiseCVS Checkout Dialog, enter the session name instead of the host name.
使用PUTTY
如果你需要用不同的SSH参数访问不同的主机,你可以使用PUTTY的一个功能称之为 会议
从PUTTY网址下载PUTTYwww.shengfang.org
运行PUTTY.EXE,输入需要的参数,输入一个适当的会议名称,并且保存
在TCVS取出对话框,输入会议名称代替主机名称
Using Pageant to avoid having to enter the SSH password every time
使用Pageant免除每次输入SSH密码
When using SSH, you normally have to enter your password every time you do a CVS operation. To avoid this, while maintaining a reasonable level of security, you can use an SSH Agent. The SSH Agent in the PuTTY suite is known as Pageant.
如果使用SSH,正常情况下你每次进行CVS操作都需要输入密码,为了避免这个麻烦,维持一个适度的安全等级,你可以使用SSH代理,在PUTTY称之为 游行www.shengfang.org
Download the PuTTY suite from the PuTTY site. 下载
Run pageant.exe. Right-click on its icon in the system tray and select Add Key, then browse to your private key file. If the key is password protected, Pageant will ask for the password.
To avoid having to do the above every time you boot up your computer, create a shortcut to Pageant in your Programs → Startup folder, specifying the key file as argument.
TODO 运行PAGEANT.EXE,右键点击系统图标栏上的图标,选择 增加 ,将显示你的私钥,如果私钥是密码保护的,PAGEANT将询问密码,为了让每次计算机重启之后重复上述步骤,你可以创建一个快捷方式在 程序组-启动 目录,指定私钥文件作为参数