clearcase - 如何使用 RTC 源代码控制模拟多开发人员场景

标签 clearcase rtc

是否可以使用 RTC 源代码控制模拟多开发人员场景,以便当我进行代码更改时,我可以测试接受更改集等。这只是为了让我可以仅使用一个用户来测试多开发人员环境。

我尝试创建多个 Eclipse 工作区,并将相同的项目区域加载到每个 Eclipse 工作区中。使用此方法,我无法接受更改集,因为一旦我在工作 Eclipse 工作区中进行更改,RTC 源代码控制只会要求我重新同步我的工作区: enter image description here

似乎接受传入更改的唯一方法是 1. 在“待处理更改” View 中右键单击流 2. 选择负载 3. 选择以下选项: enter image description here

最佳答案

确保您使用流(即确保您不会直接交付到模拟其他用户的另一个存储库工作区)

(注意:这在 ClearCase 中完全不同,其中可能会发生“不同步”between the configuration of an UCM view and the one of a Stream after a rebase)

如果您创建不同的存储库工作区(在不同的 Eclipse 工作区中加载),则在同一 Eclipse 实例中使用时可能会导致一些困惑。

正如 this thread 中所述

repository workspaces are meant to isolate changes - being your private stream.
There is no automatic accepting of changes so you are in full control of what flows in. You can also run private builds on them. that is the whole idea.

If you want to run several repository workspaces with shared code you should use a Stream I think.
The clean repo workspace would be used to accept the changes you decide to deliver to your stream.
So you are trying to use a repository workspace as a stream. While they are almost identical, I am not sure about how they would react to changes delivered to them. Especially while being loaded.

You should use two Eclipse instances. I am concerned about having the same eclipse projects loaded multiple times in the same sandbox and the same Eclipse

在同一线程中解释了“困惑”:

This is expected behavior.
When you change WS1 by delivering to it, the content you've loaded to disk for WS1 isn't updated. So you have to reload.
For this reason, you are not allowed to deliver to other user's workspaces. You can't alter someone's workspace but you can alter your own because you would know why it went out of sync.

查看“Good practices and key workflows for Rational Team Concert Source Control users”的第7点和第10点。


注意:文章“Loading Content from a Jazz Source Control Repository in Rational Team Concert 2.0”(也适用于RTC3.0)在“Reloading Out-of-sync Shared Folders”部分中提到了与OP给出的类似的建议:

The local workspace can become out of sync with the remote workspace due to a couple of reasons:

  • The remote workspace is loaded multiple times and changes have been checked in or accepted from another client session.
  • An error was encountered during an operation (e.g. Accept) that modifies both the local and remote workspaces.

When the local workspace became out of sync with the remote workspace in RTC 1.0, the user was forced to run the Load wizard and reselect the folders that needed to be reloaded.
In RTC 2.0, this new option will automatically select the out of sync folders and reload them so they are no longer out of sync.
Also new in RTC 2.0 is an indication in the Pending Changes view that there are projects out of sync, as shown below.

out of sync RTC projects

Clicking on the Reload out of sync link in the Pending Changes view will open the Load wizard.

Load Repository Workspace dialog

The reload option will be selected by default and clicking next will then allow you to select which folders to reload.
As you can see in the following screen shot, all the projects in the Foundation component are out of sync and need to be reloaded.
Clicking Finish will reload these folders and bring them back in sync.

Projects to reload

此外,线程“How to handle project out of sync ”提供了该机制的有趣说明(尽管这不完全符合您的情况)。

关于clearcase - 如何使用 RTC 源代码控制模拟多开发人员场景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10175452/

相关文章:

Java eclipse : Importing jar file in eclipse plugin project

java - 使用 RTC API 4 从 ProjectArea 获取流

java - Eclipse Kepler RTC 插件上的 IBM SecureRandom

c# - 如何通过 C# 代码获取给定主机中所有 View 和 VOB 的名称

clearcase - 将 RationalTeamConcert SCM 导入到 Clearcase

clearcase - 如何删除clearcase中的版本

c# - cleartool 在命令提示符和 C# 应用程序中的行为不同

git - 在 Git 中 checkout 时感到困惑

java - 可以在 Web 服务中包含客户端 JAVA API 库吗?

java - 在不使用工作空间的情况下获取变更集中文件的路径