Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

scm commandline obtaining repository information from a sandbox location

Hi,

Once a sandbox has been loaded (and .jazz5) file created, is it possible subsequently to discover which repository/workspace/component has been loaded into the sandbox via command line?

I'm trying to plug RTC into another tool, which has a CM API designed for svn, which appears to cache repo info within its .svn file.

thanks,

SR

1 vote


Accepted answer

Permanent link
The 'scm show status' command should do the trick. For example:
$ scm --show-uuid yes status --no-local-refresh --wide
Workspace: (1000:_LtY992j7EeSXbqAzJhWI1g) "Your workspace name" <-> (1001:_eL-QwGkJEeSXbqAAJh2I1g) "your flowtarget name"
  Component: (1002:_e2m2MBDuEdyJqvumb3iZNg) "Component name 1"
    Baseline: (1003:_0jmaA0YKEeSoju-p2tTRXQ) 7619 "Sept 27, 1:55AM build"
  Component: (1004:_F-nj8ZaPEeKgP__Tq8vGmw) "Comp name 2"
    Baseline: (1005:_0jMdaEYKEeSoju-p2tTRXQ) 693 "Sept 27, 1:55AM build"
The `--show-uuid` makes the output include the UUID of the items listed, `--no-local-refresh` skips the refresh of the filesystem and speeds up execution, while `--wide` prevents lines from being cut off. 

You can add a --json as well, which causes the output to be written in a JSON format that may be easier to consume than the human-readable text. 
Stephen Rooks selected this answer as the correct answer

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Nov 10 '14, 11:10 a.m.

Question was seen: 3,920 times

Last updated: Nov 10 '14, 2:28 p.m.

Confirmation Cancel Confirm