It's all about the answers!

Ask a question

scm commandline obtaining repository information from a sandbox location


Stephen Rooks (18231725) | asked Nov 10 '14, 11:10 a.m.
retagged Nov 10 '14, 2:28 p.m. by Evan Hughes (2.4k1118)
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

Accepted answer


permanent link
Evan Hughes (2.4k1118) | answered Nov 10 '14, 2:27 p.m.
JAZZ DEVELOPER
edited Nov 10 '14, 2:28 p.m.
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

Your answer


Register or to post your answer.