Team Concert v4.0 - compare baselines using the 'scm' command-line utility
I need some guidance with running the "scm compare" command:
I'm trying to compare the latest in a stream ('my_test_stream') and a baseline (Release_2013_1); however, I get the following error.
/home/pmn/workspaces/pmn_release_2013_1 > scm compare -r local -c nm -I f stream my_test_stream baseline Release_2013_1
Ambiguous selector "nm" matched multiple items:
Possible matches:
(1016) "nm"
(1098) "nm"
Problem running 'compare':
Ambiguous component "nm".
/home/pmn/workspaces/pmn_release_2013_1 >
I suspect the command syntax is correct; though, I'm unable to find out what the colliding item is. Is there a way to find out where this collision is occurring? Or to qualify the above command to specifically use 1016 instead of 1098?
Here's the output of the status of the workspace (just to show you that there is no duplication in the components):
/home/pmn/workspaces/pmn_release_2013_1 > scm status -w
Workspace: (1091) "pmn_release_2013_1" <-> (1069) "release_2013_1"
Component: (1004) "Admin"
Baseline: (1115) 9 "BL_2013_12341.1"
Component: (1016) "nm"
Baseline: (1116) 12 "BL_2013_12341.1"
/home/pmn/workspaces/pmn_release_2013_1 >
I'm running this from an RHEL host and I'm connected to RTC version 4.0.
Regards...
Accepted answer
As the error message indicates there are two components with the same name (probably created by the same user or different users). If you run 'scm list components --name "nm"' you should see two components listed.
Yes you can provide the alias (1016) to the '-c' option. In your case:
scm compare -r local -c 1016 -I f stream my_test_stream baseline Release_2013_1
Note: The alias is specific to scm command line and will be different in another system for the same artifact. If you are using commands in the scirpt use the UUID of the item. To show the UUID specify '-u' option. For example: scm -u y <command> <options>'