由 ccm dir 命令列出的所有受控对象均可使用名称为 relative_path 的新伪特性。 此特性是该对象上下文项目中的相对路径,在所有平台上均使用目录字段分隔符 /。如果该对象不是指定上下文项目的成员,那么该特性在缺省情况下显示为空字符串。
ccm dir -p|-project [-m] ([-w] | [-f|-format format]) [-s] [-nf|-noformat]
([-ch|-column_header] | [-nch|-nocolumn_header])
[-sep|-separator separator] ([-sby|-sortby sortspec] |
[-ns|-nosort|-no_sort]) [-gby|-groupby groupformat] project_spec...
ccm dir [-m] ([-w] | [-f|-format format]) [-s] [-nf|-noformat]
([-ch|-column_header] | [-nch|-nocolumn_header])
[-sep|-separator separator] ([-sby|-sortby sortspec] |
[-ns|-nosort|-no_sort]) [-gby|-groupby groupformat]
[path_or_file_spec...]
关键字可以是内置关键字(%fullname、%displayname 和 %objectname)或任何现有属性的名称,例如 %modify_time 或 %status。
请参阅内置关键字,以获取关键字列表。
ccm dir -m
(UC) symlink _ccmwaid.inf
working
john 6/20/08 4:05 PM ascii 1 a.txt-one 10
working john
6/20/08 4:06 PM ascii 1 b.txt-one 10
ccm
dir
working john 6/20/08 4:05 PM ascii 1 a.txt-one 10
working john 6/20/08 4:06 PM ascii 1 b.txt-one 10
ccm dir -w
ext_incl-1
incl-1
src-1
ccm dir /s
integrate joe Jun 19 2008 dir J#1 include,2
J#5565
(LC) integrate bob Jan 26 15:41 makefile J15
Makefile.pc,#7 J#6103
released joe Jan 16 2006 dir J#12
src,1 J#120
include:
(LC)
integrate pat Jan 26 15:42 makefile J#1 make_include.pc,13 J#6103
src:
(LC) integrate max Mar 27 2008 java J#1 Main.c,6
J#5339
ccm dir /f "%displayname %type %path"
a.txt-one ascii
C:\ccm_wa\turn_3349\SubPrj-1\SubPrj\a.txt
b.txt-one
ascii C:\ccm_wa\turn_3349\SubPrj-1\SubPrj\b.txt