如何创建一个包含另一个分支源的新分支-RTC Source Control [英] How to create a new branch which contains source of another branch - rtc source control

查看:95
本文介绍了如何创建一个包含另一个分支源的新分支-RTC Source Control的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含多个组件的流. 我想将此流分为开发和生产流(有点像ClearCase UCM集成和开发流).

I have a stream which contains multiple components. I want to break this stream into a development and a production stream (a bit like the ClearCase UCM Integration and Development Streams) .

我该如何完成呢?
(在ClearCase中,这是关于创建现有Stream的子Stream)

How do I accomplish this ?
(In ClearCase, it was about creating a sub-Stream to an existing Stream)

类似的东西:

  • 将当前流重命名为dev-stream.
  • 创建新的流prod流.
  • 创建新组件以匹配"dev-stream"中的组件,并将它们添加到"prod-stream"
  • Rename the current stream to dev-stream.
  • Create a new stream prod-stream.
  • Create new components to match components in 'dev-stream' and add them to 'prod-stream'

我有一个工作区,它与流"dev-stream"一起流动. 要将代码从'dev stream'复制到'prod stream',我是否需要将工作空间流目标从'dev-stream'更改为'prod-stream'并将更改传递到此新流?

I have a workspace which flows with the stream 'dev-stream'. To copy the code from the 'dev stream' to the 'prod stream', do I need to change my workspace flow target from 'dev-stream' to 'prod-stream' and deliver changes to this new stream?

推荐答案

在RTC中,您不必创建新组件. 您可以随时重命名现有流.

In RTC, you don't have to create new components. You can rename an existing stream at any time.

然后,我建议在该现有(并重命名)流上创建快照,以便对所有组件进行拍照.

Then I would advise to create a snapshot on that existing (and renamed) stream in order to take a picture of all the component.

您可以创建一个新流并在其中添加该快照:所有组件将在一次操作中添加.
您无需复制任何文件.

You can create a new stream and add that snapshot in it: all the components will be added on one operation.
You don't need to copy any file.

您将在第二个流上创建第二个回购工作区,并将其加载到第二个本地工作区或沙箱中所需的任何目录.

You will create a second repo workspace on that second stream and will load it any directory you want in a second local workspace or sandbox.

这篇关于如何创建一个包含另一个分支源的新分支-RTC Source Control的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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