UCM:如何在任意增量基线上创建动态视图(基本清除) [英] UCM: How to create dynamic view (base clearcase) on arbitrary incremental baseline
问题描述
当前,我们使用ClearCase UCM。我正在尝试评估在项目中使用git的可能性。我决定在过去三年中通过集成流程创建大型仓库。 pvob下有12个小提琴。为了进行评估(造成最坏的情况),我将所有更改都放入单个存储库中。
Currently we use ClearCase UCM.. I am trying to evaluate possibility of using git in our project. I decided to create large repo with past three years changes from an integration stream. The pvob has 12 vobs under it. For purpose of evaluation(creating a worst case), I am putting all changes into single repository.
我想创建一个基本的Clearcase视图然后在 pvob 上针对每个基准调整其规格。然后将其同步到git存储库。
I want to create a base clearcase view and then adjust its spec for every baseline on the pvob. This will then synched to git repository.
简而言之,问题:如何在给定pvob基线的情况下创建基本的clearcase视图,并不断更改其配置规范以匹配每个基线?
Question in short: How can I create a base clearcase view given a pvob base line and keep changing its config spec to match every baseline?
(教学笔记:我要实现的目标的图片。)
(academic note : A picture of what I am trying to achieve.. )
(在 ClearCase UCM:是否可以在任何给定的基准上拥有临时视图? 对于我来说是一种解决方法。我想我可以避免创建许多临时流的步骤-不知道如何做!)
(Approach discussed in ClearCase UCM: Is it possible to have a temporary view on any given baseline? is kind of work around in my case. I guess I can avoid the step of creating many temporary streams- not sure how!)
推荐答案
我将所有更改都放入单个存储库中。
I am putting all changes into single repository.
完成多次ClearCase到Git的迁移后,正确的比例通常是
如何在给定pvob基线的情况下创建基本的clearcase视图,并不断更改其配置规范以匹配每个基线吗?
How can I create a base clearcase view given a pvob base line and keep changing its config spec to match every baseline?
您不必创建基本的ClearCase视图。
您可以创建Int流的子流,并管理要在其中看到的基线。
( cleartool rebase -bas xxx @ \YourPVob
)
You don't have to create a base ClearCase view.
You can create a sub-stream to the Int stream, and manage the baselines you want to see there.
(cleartool rebase -bas xxx@\YourPVob
)
然后您可以将该子流的UCM视图用作git导入的源。
You can then use an UCM view to that sub-stream as a source for your git import.
如果这种方法不可行(正如我在您以前的回答中提到的 所述,因为例如所有基线均未在同一父流中创建),则可以创建基本ClearCase视图并修改其配置规范,以选择基线完整ID:
If that approach isn't possible (as I explained in my previous answer you mention, because for instance all baselines haven't been created in the same parent stream), then you can create a base ClearCase view and modify its config spec in order to select the baseline complete ids:
element * BaselineId1
element * BaselineId2
...
(此处的动态视图对于调整配置规范更为有用。
设置好配置规范后,您可以使用相同的配置规范和适当的加载规则更新快照视图,以将其用作git导入的源。)
(A dynamic view here is more useful to tweak the config spec.
Once the config spec is set, you can update a snapshot view with the same config spec, and appropriate load rules, to use it as a source for your git import).
您需要确保这些基准是:
You need to make sure those baselines are:
- 完整基线 (您可以将增量基线升级为完整基线)
-
以其ID引用(而不是其标题,即其可见的名称。)
另请参见 使用Cleartool显示当前基准 :
cleartool describe -l baseline:aBaseline@\aPVob
cleartool descr -fmt "%[found_bls]CXp" stream:myStream@\myPVob
第二个命令将为您提供流中的所有基线。
在两种情况下,您都会看到t
The second command would give you all baselines in a stream.
In both cases, you would see the baseline ids in addition of their names.
我在以下内容中提到了ClearCase到Git的迁移:
I have mention the ClearCase to Git migration aspect in :
- 从UCM ClearCase迁移到GIT
- 如何将ClearCase开发历史集成到Git中?
- 将历史记录从ClearCase保存到Git吗?
- 如何将git桥接到ClearCase?
- 同步GIT和ClearCase
- "Migration from UCM ClearCase to GIT"
- "How to integrate ClearCase development history into Git?"
- "Save history from ClearCase to Git?"
- "How to bridge git to ClearCase?"
- "Sync GIT and ClearCase"
好技巧是使用
git --git-dir=/path/to/git/repo/.git --work-tree=/path/to/ClearCase/view add .
这使您可以将ClearCase视图视为git repo的工作树(这是目标)
That allows you to consider the ClearCase view as the working tree of your git repo (which is the destination of your import).
我通常不尝试从 all 流导入 all 基准,因为它是太复杂了,太早了(为了使这些历史顺序正确无误。)。
I generally don't try to import all baselines from all streams because it is too complex too soon (in order to get the sequence of those histories right).
我只是从主流中获得了一些基准,将它们导入并从那里去了(保留ClearCase引用作为历史研究的只读存档源。
I just get a few baselines from the main stream, import them and go from there (keeping the ClearCase referential as a read-only archive source for history research).
这篇关于UCM:如何在任意增量基线上创建动态视图(基本清除)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!