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 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
Geoffrey Clemm (30.1k●3●30●35)
| answered Feb 21 '11, 11:38 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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: How does one find the UUID of a changeset from the command line? |
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/ |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.