使用 Rational Team Concert 或 RTC:如何恢复到历史某个点?
在我的工作中,我们使用 RTC 作为 SCM。
这似乎是源代码控制管理的一个基本问题。
有没有办法将整个工作区回滚到过去的某个时间点?
我在“团队”下看到了历史记录选项,但这似乎仅适用于一个文件。
谢谢
At my Work we use RTC for SCM.
This seems like a basic question for Source Control Management.
is there a way to roll back an entire workspace to a point in the past?
I have seen the history option under "team" but that seems to only be for one file.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您还可以通过 IDE 替换基线中的组件或另一个工作区/流中的组件:
如果要一次替换多个组件,您可以:
或者,如果您没有基线或其他工作区/流捕获您想要的过去的点,您可以:
You can also replace a component from a baseline or component in another workspace/stream via the IDE:
If you want to replace multiple components at once, you can:
Or, if you don't have a baseline or other workspace/stream capturing the point in the past you want, you can:
这取决于您过去如何指定该点。
如果您之前有确实代表所述点的基线,则根据
It depends how you specify that point in the past.
If you have previous baselines that do represent said point, then, according to this thread:
如果您没有基线,您还可以丢弃自您关心的时间以来已交付到流的更改集。
您可以通过调用
scm Discard
来完成此操作。要查找要丢弃的更改集,请使用scm History
。If you don't have a baseline, you can also discard the change sets that have been delivered to the stream since the time you care about.
You do that by calling
scm discard <change-set-selector>
. To find the change sets to discard, usescm history
.您提到您想恢复整个工作区...只是为了澄清您的要求:
更改已签入存储库工作区。
签入的更改将传送到流。
与某些 SCM 系统的不同之处在于,它有一个两步过程。
您想恢复到工作区之前的状态吗?还是蒸汽?
恢复交付到流的变更集很容易,IBM 实际上有一些不错的 doco 。
如果您签入了对工作区的更改但没有交付...这将变得更加困难,您最好希望的是从 IDE 中的本地历史记录进行恢复。存储库工作区不存储历史记录。
You mentioned you want to revert an entire workspace... Just to clear up what you're asking:
Changes are checked-in to a repository workspace.
Checked-in changes are delivered to a stream.
Differing from some SCM systems in that there is a two step process.
Do you want to revert to a prior state in your workspace? or the steam?
Reverting a changeset delivered to a stream is easy, IBM actually has some decent doco on it.
If you checked in a change to your workspace but didn't deliver... it's going to be rougher, best you can hope for is restoring from local history in your IDE. The repository workspace doesn't store history.
仅当您想恢复到上次检查的版本时,下面的答案才会对您有所帮助。
在 RTC IDE 中:
检查下图 :)
The answer below will help you only if you want to revert to the last checked version.
In the RTC IDE:
Check the Image below :)