Showing posts with label release. Show all posts
Showing posts with label release. Show all posts

Thursday, June 10, 2010

Synergy: release attributes

Just in case, here are the release attributes (and how to list them)

> ccm query -type releasedef -name "KUKU"
...
> ccm attr -la @1
_import_status_order (string) (inherited)
active (boolean) (local)
allow_dcm_transfer (boolean) (local)
allow_delimiter_in_name (boolean) (inherited)
allow_delimiter_in_version (boolean) (inherited)
atcp_attrs (text) (inherited)
auto_merge_cmd (string) (inherited)
baseline (string) (local)
can_be_product (boolean) (inherited)
cli_compare_cmd (string) (inherited)
cli_merge_cmd (string) (inherited)
component_name (string) (local)
component_release (string) (local)
create (acc_method) (inherited)
create_time (time) (local)
cvtype (string) (local)
dcm_has_modifiable_in (boolean) (inherited)
dcm_non_specific_instance (boolean) (inherited)
delete (acc_method) (inherited)
derive (acc_method) (inherited)
description (text) (local)
dflt_status (string) (inherited)
diff_source_attr (string) (inherited)
displayname (acc_method) (inherited)
export_exclude_attrs (text) (inherited)
export_exclude_relations (text) (inherited)
groups (text) (local)
gui_compare_cmd (string) (inherited)
gui_merge_cmd (string) (inherited)
icon (string) (inherited)
import_ignore_attrs (text) (inherited)
included_releases (text) (local)
is_asm (boolean) (local)
is_model (boolean) (local)
is_versioned (boolean) (inherited)
keyword_expand_attrs (text) (inherited)
manager (string) (local)
max_component_name_length (string) (inherited)
max_component_release_length (string) (inherited)
modify_time (time) (local)
name (string) (local)
next_version (acc_method) (inherited)
no_copy_on_derive (text) (inherited)
objectname (acc_method) (inherited)
owner (string) (local)
parallel_check_in (boolean) (local)
parallel_check_out (boolean) (local)
parallel_create (boolean) (inherited)
parallel_promote (boolean) (inherited)
parallel_promote_defs (text) (inherited)
parallel_promote_states (string) (inherited)
phase (text) (local)
phase_log (text) (local)
post_create (acc_method) (inherited)
post_derive (acc_method) (inherited)
post_set_status (acc_method) (inherited)
pre_create (acc_method) (inherited)
pre_derive (acc_method) (inherited)
pre_set_status (acc_method) (inherited)
relate (acc_method) (inherited)
require_task (string) (inherited)
restricted_attributes (text) (inherited)
set_status (acc_method) (inherited)
source_attrs (text) (inherited)
source_diff (acc_method) (inherited)
source_merge (acc_method) (inherited)
status (string) (local)
status_log (uptext) (local)
subsystem (string) (local)
super_type (string) (inherited)
type_description (string) (inherited)
ui_defs (acc_method) (inherited)
unrelate (acc_method) (inherited)
version (string) (local)
version_delims (text) (inherited)
version_diff (acc_method) (inherited)
wa_type (string) (inherited)
xml_export_exclude_attrs (text) (inherited)
xml_export_exclude_relations (text) (inherited)
xml_import_ignore_attrs (text) (inherited)
xml_import_noimage_attrs (text) (inherited)

Thursday, December 3, 2009

Query for a release with particular name

e.g. looking for a release for the component MyComp:
$ ccm query -type releasedef "name='MyComp'" -f "%name %displayname %component_name %component_release %version"
1)
MyComp MyComp/1.00 MyComp 1.00 1.00
2)
MyComp MyComp/2.00 MyComp 2.00 2.00
$ ccm query -type releasedef "component_release='XYZ_V81513F'"
1) XYZ_V81513F release_admin ccm_root releasedef <void> 1 <void>
query for active releases with particular name:
$ ccm query -type releasedef "component_release='XYZ_V82510' and active=TRUE"

Tuesday, November 10, 2009

How do you query for objects from a particular Release pattern?

Follow the steps below to query the objects associated to a particular "release value pattern".
  1. Query for all the active releases using the command:

    ccm release -l -active

  2. Next to list all the projects pertaining to all the releases on the database run the command:

    ccm query -t project -f "%release"

  3. Query for all the projects pertaining to a particular release pattern:

    ccm query -t project "release match '*toolkit/*'" -f "%objectname %release"

    This lists only the projects.

  4. List all the objects on the database pertaining to this release pattern:

    ccm query "release match '*toolkit/*'" -f "%objectname %release"

    This will list all the objects in the database like process rules, reconfigure_templates, tasks, files, folders, baselines etc. The output can be huge depending on the size of the database.

  5. Query for the tasks of that particular release pattern:

    ccm query -t task "release match '*toolkit/*'" -f "%objectname %release"

  6. Query for all the objects associated to the queried release pattern.

    ccm query "is_associated_object_of('four_part_name_of_task')"

Synergy "release" object - how to query and attributes list

$ ccm query -type releasedef -name CCM
1) CCM/CCMTEST release_admin username releasedef <void> 1 <void>

$ ccm attr -la @1
_import_status_order (string) (inherited)
active (boolean) (local)
allow_dcm_transfer (boolean) (local)
allow_delimiter_in_name (boolean) (inherited)
allow_delimiter_in_version (boolean) (inherited)
atcp_attrs (text) (inherited)
auto_merge_cmd (string) (inherited)
baseline (string) (local)
can_be_product (boolean) (inherited)
cli_compare_cmd (string) (inherited)
cli_merge_cmd (string) (inherited)
component_name (string) (local)
component_release (string) (local)
create (acc_method) (inherited)
create_time (time) (local)
cvtype (string) (local)
dcm_has_modifiable_in (boolean) (inherited)
dcm_non_specific_instance (boolean) (inherited)
delete (acc_method) (inherited)
derive (acc_method) (inherited)
description (text) (local)
dflt_status (string) (inherited)
diff_source_attr (string) (inherited)
displayname (acc_method) (inherited)
export_exclude_attrs (text) (inherited)
export_exclude_relations (text) (inherited)
groups (text) (local)
gui_compare_cmd (string) (inherited)
gui_merge_cmd (string) (inherited)
icon (string) (inherited)
import_ignore_attrs (text) (inherited)
included_releases (text) (local)
is_asm (boolean) (local)
is_model (boolean) (local)
is_versioned (boolean) (inherited)
keyword_expand_attrs (text) (inherited)
manager (string) (local)
max_component_name_length (string) (inherited)
max_component_release_length (string) (inherited)
modify_time (time) (local)
name (string) (local)
next_version (acc_method) (inherited)
no_copy_on_derive (text) (inherited)
objectname (acc_method) (inherited)
owner (string) (local)
parallel_check_in (boolean) (local)
parallel_check_out (boolean) (local)
parallel_create (boolean) (inherited)
parallel_promote (boolean) (inherited)
parallel_promote_defs (text) (inherited)
parallel_promote_states (string) (inherited)
phase (text) (local)
phase_log (text) (local)
post_create (acc_method) (inherited)
post_derive (acc_method) (inherited)
post_set_status (acc_method) (inherited)
pre_create (acc_method) (inherited)
pre_derive (acc_method) (inherited)
pre_set_status (acc_method) (inherited)
relate (acc_method) (inherited)
require_task (string) (inherited)
restricted_attributes (text) (inherited)
set_status (acc_method) (inherited)
source_attrs (text) (inherited)
source_diff (acc_method) (inherited)
source_merge (acc_method) (inherited)
status (string) (local)
status_log (uptext) (local)
subsystem (string) (local)
super_type (string) (inherited)
type_description (string) (inherited)
ui_defs (acc_method) (inherited)
unrelate (acc_method) (inherited)
version (string) (local)
version_delims (text) (inherited)
version_diff (acc_method) (inherited)
wa_type (string) (inherited)
xml_export_exclude_attrs (text) (inherited)
xml_export_exclude_relations (text) (inherited)
xml_import_ignore_attrs (text) (inherited)
xml_import_noimage_attrs (text) (inherited)

Monday, November 9, 2009

How can I find all objects with a specific release tag value? - by Telelogic



Answer
The following query will return all objects which contain a release tag value of 2.0:
% ccm query "has_attr('release') and release = 'rel2.0' "
Note that as of Synergy/CM version 6.4, the value is the release name and numeric value combined, such as: Toolkit/2.0
4.5, 5.0, 5.1, 5.1cs, 6.0, 6.1, 6.2, 6.3, 6.4, 6.5FAQSCM0186AnswerProduct versionPartner ContentInternal ContentCategoryReference IDAuthor


Historical Number
KB858

How can I find all projects using a particular naming convention or wildcard (e.g. aaa_)? - by Telelogic


Technote (FAQ)
Question
How can I find all projects using a particular naming convention or wildcard (e.g. aaa_)?

Answer

The following cm command line query will return all projects which begin with the string: 'aaa_'

% ccm query "(name match 'aaa_*') and (type='project')"
For further examples of ccm queries, please review the Related Document as listed below "Examples of 'ccm query' Syntax".
CM Synergy 5.0, 5.1, 5.1cs, 6.0, 6.1, 6.2, 6.3, 6.4, 6.5FAQSCM0181AnswerProduct versionPartner ContentInternal ContentCategoryReference I


Historical Number
KB839