gpt4 book ai didi

rtc - 在 RTC 中交付后如何丢弃更改集

转载 作者:行者123 更新时间:2023-12-04 19:41:41 25 4
gpt4 key购买 nike

我不小心交付了更改集,其中包括一些在 RTC 中具有本地系统特定配置的附加配置文件。有没有办法在交付后丢弃这些更改?我的意思是这些更改不应该作为其他团队成员的传入更改。

如果有,请提供任何指针。

最佳答案

Is there any way to discard those changes once delivered?

不完全是:一旦交付,该变更集作为传入的其他团队成员。

有两种解决方案:

  • 将流配置恢复到交付之前的状态。只有在交付变更集之外的基线时,这很容易,因为您可以打开流,并在“组件”部分中单击“替换为”,然后将交付的基线替换为之前的基线。

但是...如果您从未交付过基线(并且只交付过变更集),这根本不容易。
你可以尝试关注“Is there a way to create a RTC snapshot or baseline based on a past date?”,不过比较繁琐。
此外,如果您的同事已经接受了您的变更集并开始交付他们自己的变更集,则根本不推荐使用此解决方案。

  • 或者,更简单的是,您创建一个新的变更集,该变更集将取消您刚刚交付的变更集。
    • 右键单击您的组件,然后选择 show > history,然后右键单击您错误交付的最新更改集,然后选择 revert .
      这将创建一个补丁。
    • 右键单击该补丁,然后选择“应用到您的工作区”:这将创建一个变更集,该变更集是已交付的负面图像。
      交付新的变更集。

这意味着您的同事将不得不接受两个更改集:不正确的更改集和取消它的新更改集。


This thread介绍了第一个替代方案的变体:

you can really remove the change set from the stream you delivered it to.
You can do this by:

  • discarding the change set from your local workspace
  • and then replacing the content of the stream with the content of your workspace for the particular component that's affected.

This is a more risky solution, because it really replaces the content of the stream with whatever you have in your workspace... it will remove anything in the stream that you don't have in your workspace. To do this:

  • a. Accept any incoming changes from the stream you are working with (to prevent losing anyone else's work).
  • b. Right click on the owning component in the Pending Changes view and select Show->History. The change set will appear in the History view.
  • c. Right click on the change set and choose Discard... This will discard the change set from your workspace.
    So your workspace should now have all change from the stream except the one you want to remove. You can verify this by checking that your bad change set is the only thing you see Incoming.
  • d. Right click on the component and choose "Replace in [your stream name]..."

关于rtc - 在 RTC 中交付后如何丢弃更改集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21949781/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com