Jump to content
wyattetal

How to get consistent changeset info from cm status

Recommended Posts

We recently discovered that the output of cm status is variable based on the state of the workspace.

This affects windows batch scripted calls that parse the output for the changeset version.

How do we call cm (or other command line tool) to get the current changeset in a consistent manner?

First format example: cm status --nochanges ==> cs:1002@<REPO>@ssl://<PLASTIC SERVER>:8088 (head)

Second Format example: cm status --nochanges /main/JIRA_TASK@<REPO>@ssl://<PLASTIC SERVER> (cs:1627 - head)

Alternatively, what windows batch script code do you recommend to extract the changset number that will work for these and any other format variations?

Thanks.

Share this post


Link to post
Share on other sites

You can use the --cset option to get the output in the original cs:X@repository@server format:

c:\mcga>cm status --cset
cs:8@rep:test@repserver:localhost:8084

 

  • Like 1

Share this post


Link to post
Share on other sites

Thanks.

Can you explain what changes result in the differing output?

In other words, what should I do to a workspace order to force the alternate formats of cm status --nochanges?

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...