如何使用scm工具创建包含流的所有组件的存储库工作区? [英] How to create a repository workspace which contains all of the components of a stream using scm tool?

查看:170
本文介绍了如何使用scm工具创建包含流的所有组件的存储库工作区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用'scm'自动执行流中文件的更新

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

这就是我认为的工作方式:

Here is how I think it should work :

  1. 以当前用户(我)身份登录到存储库
  2. 创建一个新的存储库工作区,其中包含给定Stream的所有组件
  3. 加载新创建的工作区的组件
  4. 更新文件

我在第2点.阅读

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.

我已经通过scm登录到rtc仓库,这是我用来尝试创建的命令 流中的快照

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创建快照-n测试-d测试"mystream"

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

但是我收到一个错误:

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

我的命令正确吗?

推荐答案

您最好的选择是首先在流上创建一个快照,然后将该快照添加到您的存储库工作区中.

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

请参见此线程:

scm create snapshot [options] <workspace/stream>

通过将快照与新流相关联,这将在一个命令中添加 all 个组件基线(请参阅

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

scm snapshot promote

这篇关于如何使用scm工具创建包含流的所有组件的存储库工作区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆