ccm co|checkout [-task task_spec] [-t|-to version|file_spec]
[-c|-comment comment_string] [-ce|-commentedit]
[-cf|-commentfile file_path] file_spec...
可以将此选项与 -commentedit 和 -commentfile 结合使用。如果使用 -commentedit 选项,注释将在缺省文本编辑器中显示。
缺省情况下,-to 参数解释为新版本。例如,运行以下命令:
ccm co main.c -to bar
新对象版本为 main.c-bar。
要更改名称,必须在目标参数中包含对象名和版本。例如,运行以下命令:
ccm co main.c -to bar.c-1
新对象版本为 bar.c-1。
如果检出项目,那么仅指定版本。如果检出项目层次结构,那么新版本用于项目及其子项目。使用 -versions 选项可将新版本映射到层次结构中项目的旧版本。-to 和 -versions 选项互斥。此外,如果不指定 -to 或 -version 选项,那么会使用内置算法自动计算缺省的下一个版本。
如果检出当前项目中所使用的对象的某个版本,那么新版本(“to”版本)也会在项目中使用。
ccm co -c "patch1: fix symbol table bug" -to patch1 main.c-1
Windows:
>
ccm co -c "added new files" c:\users\john\ccm_wa\test_db\projA-3\utils\tools
UNIX:
$ ccm
co -c "added new files" ~/ccm_wa/test_db/projA-3/utils/tools
ccm co -c "comment string" -task task_number object_name1 object_name2