How to find changeset UUID from command line?
How does one find the UUID of a changeset from the command line?
Consider a case where I want to selectively accept changesets for a build instead of taking them all. I can usescm status to show the changesets & baselines that I can possibly accept...but there are no UUIDs given for the listed changesets.
I can't rely on the alias because, as I understand it, these aliases are unique to the client environment where the commands are being run & I might need to run status in one environment and accept in a different environment.
I've tried using the -I flag but that didn't seem to do anything.
Consider a case where I want to selectively accept changesets for a build instead of taking them all. I can use
I can't rely on the alias because, as I understand it, these aliases are unique to the client environment where the commands are being run & I might need to run status in one environment and accept in a different environment.
I've tried using the -I flag but that didn't seem to do anything.
2 answers
Have you tried the "--show-uuid y" flag?
See the "source control command line reference" help page.
Cheers,
Geoff
On 2/21/2011 11:53 AM, carej wrote:
See the "source control command line reference" help page.
Cheers,
Geoff
On 2/21/2011 11:53 AM, carej wrote:
How does one find the UUID of a changeset from the command line?
Consider a case where I want to selectively accept changesets for a
build instead of taking them all. I can use scm
status to show the changesets& baselines that I
can possibly accept...but there are no UUIDs given for the listed
changesets.
I can't rely on the alias because, as I understand it, these aliases
are unique to the client environment where the commands are being run
& I might need to run status in one environment and accept in a
different environment.
I've tried using the -I flag but that didn't seem to do anything.
Its possible to get more information from many of the scm commmand lines by using --json (or -j)
For example, normal command, gives the alias:
>lscm list changesets -r jazz224
Change sets:
(1139) ---$ who dun it "add comment for fun" 08-Apr-2013 02:47 PM
...etc
-json command gives UUIDs and URLs and other information..
>lscm list changesets -r jazz224 --json
lscm list changesets -r jazz224 --json
{
"changes": [
{
"author": "who dun it ",
"comment": "add comment for fun",
"modified": "08-Apr-2013 02:47 PM",
"state": {
"active": false,
"complete": true,
"conflict": false,
"current": false,
"potential_conflict": false
},
"url": "https:\/\/jazz224.bla.bla.bla:9443\/ccm\/",
"uuid": "_m1_0sKBJEeKp18Qpy_B3Ug"
},
The uuid show for each "thing" is its uuid, it would then be possible to parse the output and extract the UUID you want for another command, like a deliver etc.
This acticle has more specifics about the json output: https://jazz.net/library/article/1031/
For example, normal command, gives the alias:
>lscm list changesets -r jazz224
Change sets:
(1139) ---$ who dun it "add comment for fun" 08-Apr-2013 02:47 PM
...etc
-json command gives UUIDs and URLs and other information..
>lscm list changesets -r jazz224 --json
lscm list changesets -r jazz224 --json
{
"changes": [
{
"author": "who dun it ",
"comment": "add comment for fun",
"modified": "08-Apr-2013 02:47 PM",
"state": {
"active": false,
"complete": true,
"conflict": false,
"current": false,
"potential_conflict": false
},
"url": "https:\/\/jazz224.bla.bla.bla:9443\/ccm\/",
"uuid": "_m1_0sKBJEeKp18Qpy_B3Ug"
},
The uuid show for each "thing" is its uuid, it would then be possible to parse the output and extract the UUID you want for another command, like a deliver etc.
This acticle has more specifics about the json output: https://jazz.net/library/article/1031/