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
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
The 'scm show status' command should do the trick. For example:
$ scm --show-uuid yes status --no-local-refresh --wideThe `--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.
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"
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.