Watch, Edit and Unedit 监视、编辑、撤销www.shengfang.org You can enable Watch using TortoiseCVS when you Make a New Module by enabling the checkbox Check files read-only (on the Options tab). If you wish to enable watch on an existing module, you will need run the following command (using the Command Prompt) on the top level of the module: 你可以使用TCVS开启监视功能,当你创建一个新模块的时候在 选项 标签 中选中 只读 勾选框,并在DOS命令模式下,www.shengfang.org路径为模块最顶层文件夹 ,输入如下命令: cvs watch on Once Watch is enabled, when performing Checkout or Update the working files will be created as read-only. To change one or more files, select the directory, file or files that you want to modify, right-click on the selection, and choose the CVS Edit menu item. This command works slightly different depending on whether the file is text or binary. For binary files (such as .doc), TortoiseCVS performs an Update on the file and then checks if another user is already editing the file. If this is the case, you will not be allowed to edit it. For text files (such as .txt or .cpp), you may work on the file even if another user is already working on it; in this case, TortoiseCVS will notify you of that fact. 监视启动后,取出或者更新正在编辑的文件都将被创建为只读的。修改了文件后,选择你想要修改的文件夹或者文件,鼠标右键点击,www.shengfang.org选择 CVS编辑 菜单,这个菜单会由于文本文件或者二进制文件而稍微不同。对于二进制文件,例如DOC,TCVS完成更新操作并且检测是否有别的用户也在编辑它。如果有,那么你将不能编辑它,如果是文本文件例如.TXT/.CPP,即使有人在编辑,TCVS仍然允许你编辑它,但是会提醒你有人也在编辑的情况。 When you are done working on the file or files, Commit them as you would normally. If, however, you decide that you do not want to make changes select the file or files: Right-click on this selection and choose the CVS → Unedit menu item. TortoiseCVS will ask you if you want to revert the file to the original version (thus losing your changes). 如果你修改完毕,正常的进行提交了。但是,如果你觉得这些文件的修改需要撤销,右键,www.shengfang.org选择 CVS-撤销 菜单,TCVS将询问你是否想回复原有版本,这将丢失你所作的修改。 If you would like to see which files are currently being edited and by whom, right-click anywhere in Windows Explorer and choose the CVS → Show edited files menu item. 如果你想知道一个文件当前正在被谁修改,右键,随便在资源管理器中点击,www.shengfang.org选择CVS-显示被编辑的文件 菜单。 Tagging and Labeling 标签 To tag one or more files or directories with a label, select the directory, file or files that you want to tag. Right-click the mouse button on the selection, and choose the CVS → Tag... menu item. 用一个标志给文件或者目录打标签,选择一个文件夹、www.shengfang.org文件(你想要打标签的),右键,选择CVS-标签菜单 Figure 3.3. Tag Dialog You will then be presented with the Tag Dialog. Here you can enter a label in the Tag field. CVS is quite restrictive when it comes to what characters a tag may contain. A tag must start with a letter, and may contain letters, digits, "-" (dash) and "_" (underscore) only. In particular, this means no dots, and no spaces. If you want to include version numbers in a tag, replace the dots with dashes. Two tag names are reserved, as they have special meaning in CVS: "HEAD" refers to the most recent version available in the repository, while "BASE" is the revision you last checked out into the local directory. www.shengfang.org标签对话框将弹出,你可以在标签文本框中输入一个文本标志,CVS对输入的作为标签的字符要求非常严格。一个标签必须用字母开头,可以包含字母、数字、_-下划线 破折号。注意不能有点.和空格。如果你想在标签中包含版本信息,用破折号代替.点。两个标签名称是内部保留的,他们在CVS中有特殊含意。HEAD表示仓库中最近的有效的可用的版本,BASE表示你最后取出到本地文件夹时的修订版本。 Once the label has been entered, press the OK button. Unlike most CVS operations, the tag is immediately applied to the repository, and no commit is required. 当标签名称输入之后,点击 确定,不像其他CVS操作,www.shengfang.orgTAG标签立即在仓库生效,不需要再 提交。www.shengfang.org For more information see Making a Snapshot: CVS Tag.... 更多信息:创建一个快照:CVS标签www.shengfang.org 字体:大 中 小 |
![]() | 永久地址 http://www.shengfang.org/blog/p/tcvshelpwatch.php |
![]() | 引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1120654521 |
2005年7月6日20:55星期三 [English]





