How to create a repository workspace which contains all of the components of a stream using scm tool?

别来无恙 提交于 2020-01-02 07:57:32

问题


I'm attempting to automate the updating of a file in a stream using 'scm'

Here is how I think it should work :

  1. Login to the repository as current user (me)
  2. Create a new repository workspace which contains all of the components of a given Stream
  3. Load the components of the newly created workspace
  4. Update the file

I'm on point 2. Reading about the 'create workspace' doc on http://pic.dhe.ibm.com/infocenter/rtc/v1r0m0/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Fc_scm_cli.html it does'nt mention how to create a new workspace which contains all of the components of a given stream. So how can I implement point 2 ?

Any comments on my methodolgy if can be improved upon also appreciated.

I've logged into the rtc repo via scm and this is the command I am using to try and create the snapshot from the stream

scm create snapshot -n test -d test "mystream"

But I receive an error :

Problem running 'create snapshot':
subcommand "snapshot" requires argument-based initialization, but does not provide a directory argument.

Is my command correct ?


回答1:


Your best option would be to create first a snapshot on the stream, and then to add that snapshot to your repository workspace.

See this thread:

scm create snapshot [options] <workspace/stream>

That would add all the component baselines in one command, by associating the snapshot to the new stream (see this thread)

scm snapshot promote


来源:https://stackoverflow.com/questions/13458554/how-to-create-a-repository-workspace-which-contains-all-of-the-components-of-a-s

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!