Using TortoiseCVS with SourceForge TCVS使用手册 TortoiseCVS has advantages over WinCVS for work on SourceForge. It has a clearer interface which is integrated into Windows Explorer. WinCVS has a more complex and mature interface. For more obscure commands it may be easier or necessary to use WinCVS. TCVS比WINCVS优势。简洁集成于资源管理器,WINCVS有一个更综合成熟的界面。更简单或者必需的WINCVS使用需要更多的命令行知识。 A particular benefit is that TortoiseCVS has an SSH client built into it, without special setup. Anyone can easily commit code to SourceForge.net projects using TortoiseCVS. 还有一点是TCVS内建SSH客户端。不需要另行安装。任何人都可以用TCVS方便的提交代码到SF。 Installing TortoiseCVS 安装 To install, run the executable and follow the instructions. 按照下列指示运行安装程序 Since TortoiseCVS is a shell extension, you need to reboot your machine. 由于是一个外壳扩展,所以需要重启 Checking out an existing project 取出一个已经存在的项目www.shengfang.org Make sure you have made an account on SourceForge.net, and that you have been added as a developer to the project you are going to work on. A project administrator needs to do this. 首先确认你有一个帐号,你已经成为项目的开发组一员,项目管理员处理 In Windows Explorer go to the folder that you would like to check the code out into. 到资源管理器中你想要放置源码的目录www.shengfang.org Right click and from the context menu choose the command CVS Checkout...; it's next to the Tortoise icon. 右键关联菜单选择取出,TCVS图标 You will need your user name on SourceForge.net, and the project UNIX name. Fill in the dialog as follows: 你需要你的用户名、项目的UNIX名称。填充对话框 Protocol: Secure Shell (:ext) 安全协议 Server: cvs.sourceforge.net 服务器 Directory: /cvsroot/projectname 目录 Username: sername 用户名 Choose OK.TortoiseCVS will now check out the code. You will need to enter your password. 确定,TCVS将取出源码,你需要输入密码 You can now alter files and then select CVS Commit on the top level folder to make your changes in the repository. For more information read the TortoiseCVS User's Guide. 你现在可以进行修改,在顶层目录进行提交使修改在仓库中生效。更多信息见手册www.shengfang.org Get an error? 出现错误If you get an error saying something like Could not chdir to home folder /home/users/r/rd/rdonkin: No such file or folder then you need to log into the server with SSH to force creation of your home folder. Do this by connecting to username at cvs dot sf.net either with Putty or a command line SSH. 如果出现错误,如说什么不能进入主目录;没有该文件或者文件夹,那么你要通过SSH登录服务器,创建HOME目录,通过使用PUTTY或者SSH命令行连接 Working on a new project 工作一个新项目If you are working on a new project then you first need to create a new module in the repository. 如果是新项目,你首先创建一个新的模块 Create a folder with the name you would like the module to have. 创建一个文件夹以模块命名 Put the files you would like to add in the folder. www.shengfang.org把文件拷贝到这里 Right click on the folder, and choose Make New Module from the CVS submenu. 右键,新模块 Fill in the dialog as described in the previous section. Note that the module name is filled in for you. 按照上一章说的填充对话框。自己输入模块名称www.shengfang.org Choose OK. You will need to enter your password twice, and the module will be made for you.确定,输入密码,模块创建 www.shengfang.org Proceed to add files and folders by right clicking on them and choosing CVS Add or CVS Add All Recursively from the context menu. 增加文件:右键 选择 增加;增加所有递归 For more information read the TortoiseCVS Daily User's Guide 读用户手册 Tired of entering your password all the time?始终输入密码 To further protect your private key it is encrypted on your hard disk with a passphrase. You can however choose an empty passphrase, in which case you never have to enter a password but anyone with access to your computer can access your SSH CVS account. Or you can use an SSH Agent (such as Pageant) which will remember your passphrase for the duration of one session, so you only have to enter it once. 为了更好的保护私钥,密码加密了的,你可以选择一个空的密钥,这样你就不用每次输入密码,但是任何可以访问你电脑的人也可以访问你的SSH CVS帐号。或者你可以使用SSH代理,www.shengfang.org它可以在一个SESSION中记住你的密码,因此你只要输入一次。 TortoiseCVS uses a version of Plink as its SSH client. This means you can use PuTTYgen to make a public/private key pair, and you can use Pageant to point to where the private key is. First of all download them both from the PuTTY web site. TCVS使用一个版本的PLINK作为它的SSH客户端,意味着可以使用PUTTYGEN制作公钥私钥对,你可以使用 指向你的私钥。www.shengfang.org可以从网站下载 For information on how to use them read the PuTTY documentation on PuTTYgen and Pageant. In particular, make sure you read the sections "8.2: Using PuTTYgen, the PuTTY key generator" and "9.3.1 Making Pageant automatically load keys on startup". 如何使用看PUTTY文档,特别注意这章 8.2 使用 9.3.1 www.shengfang.org After making your public key with PuTTYgen you need to upload it using the SourceForge.net web interface. Log into the SourceForge web site, and go to your Account Preferences page. Down at the bottom is a section "Shell Account Information" with an entry "CVS/SSH Shared Authorized Keys". You need to add your public key there. 生成公钥后上传到SF.NET,登录站点,进入你的帐户参数,点击 帐号信息 CVS/SSH共享授权密钥 项目,在这里加入公钥www.shengfang.org 字体:大 中 小 |
![]() | 永久地址 http://www.shengfang.org/blog/p/tcvssf.php |
![]() | 引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1121176804 |
2005年7月12日22:00星期二 [English]






