Here are some sample queries.
- Find and change all comment attributes in the working object
versions of the proj_ico-1 project.
> ccm
query "status=’working’ and is_member_of(’proj_ico-1’)"
>
ccm attr /m comment /v "increase surface complexity" @
- Find and show all executable- type object versions
associated with task 374.
> ccm query "type=’executable’
and is_associated_object_of(’task374-1:task:probtrac’)"
- Find all objects that are members of projects that have web in
their names, and release values set to 6.0. Use a nested query.
>
ccm query "is_member_of(release=’6.0’ and name match ’*web*’)"
- Find all objects that are members of projects with the name Advanced_Topicsand
release values set to 6.0. Use a nested query.
> ccm query
"is_member_of(release=’6.0’ and name=’Advanced_Topics’)"
- Find all members of the project toolkit-1.0.
>
ccm query "is_member_of('1/project/toolkit/1.0')"
- Find all members of the editor-fcheng project
hierarchy using the fastest search method, by specifying "none".
>
ccm query "recursive_is_member_of('1/project/editor/fcheng',none)"
- Find the cvtype in the model that was used to
create the csrc object, save.c-2.
>
ccm query "is_cvtype_of(save.c-2:csrc:1')"
- Find all objects owned by sue and modified within
the past two days.
> ccm query /o sue "modify_time>time(’-2:0:0:0’)"