首页 Soft PlugIn RAN乱 Dev开发 Info资料 English WAP 留言 登陆 注册
-
Posted by Yippee | 评论(0) | 引用(0) | 阅读2044次
TortoiseCVS中文帮助-监视、编辑、撤销

Watch, Edit and Unedit 监视、编辑、撤销www.shengfang.org
CVS can also follow the semantics of Lock/Unlock that most version control systems use, although CVS calls it Edit/Unedit. This feature, however, is not enabled in CVS by default so before you can begin you need to enable Watch. CVS也能像其他版本控制系统一样进行 锁定、撤销,尽管CVS称之为 编辑、撤销。但是这个功能默认是没有启用的,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 标签
At a given stage of development, giving one or more files a common label that refers to their revisions, is known as tagging those files. Tagging is typically used on entire modules, so that the current state of the module can be reconstructed in the future. This kind of tagging should always be done on project deliverables, and before starting major changes. 在开发过程中的某个阶段,给一个或多个文件打上一个公共标签,以指示修订情况,称之为 标签。标签一般都是用在整个模块,以便将来这个模块的当前状态可以回溯。这种标签一般打在整个工程可以使用之后,但是正式发布之前。

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


字体:

Permanant URI永久地址 http://www.shengfang.org/blog/p/tcvshelpwatch.php
Trackback URI引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1120654521

2005年7月6日20:55星期三  [English] 追踪此文的RSS
提示:
此文还没有评论。

称呼:    登陆   注册
   不注册,但记住我的信息
邮件:
(非必须)
评论: [UBB代码帮助]
粗体 斜体 下划线 链接 水平线 引用



验证码: 请输入你看见的数字
关闭UBB      提交时自动将内容复制到剪贴板

公告
Fire and Motion!

统计信息
[Yippee]||[统计]||日志:1839
在线: 21||用户: 2576 [列表]
今日:2193||到访:2854047
Rss:885222||评论:1604

最新日志

最新评论

友情链接

日历

最新引用

搜索

归档

杂项
Get RSS Feed (Version 2.0)
Get Atom Feed (Version 0.3)
编码:  UTF-8