SVN到Clearcase导出 [英] SVN to Clearcase Export
问题描述
我有一个坚持使用Clearcase的客户。是否有任何工具/脚本可以让我的团队使用SVN存储库(或除Clearcase以外的其他任何东西),而是定期自动将变更集同步回Clearcase VOB?
I have a client who is rather insistent about using Clearcase. Are there any tools/scripts that would allow my team to work against an SVN repository (or really anything other than Clearcase), but periodically automatically sync back changesets to the Clearcase VOB?
我的想法是,如果存在这样的工具,并且它是自动,可靠和透明的,则可能会追究客户端,以使我们能够对抗SVN。
My thinking is that if such a tool exists, and it's automatic, reliable, and transparent the client might be pursuaded to allow us to work against SVN.
谢谢,
肯特
推荐答案
我使用 Git 直接在ClearCase视图中。
然后我可以 git2svn
如果我有要与其同步的SVN存储库,则将内容返回到SVN。
I use Git directly within a ClearCase view.
Then I could git2svn
back the content to SVN if I had a SVN repo to synchronize with.
注意:对于直接在ClearCase视图中工作的工具,我有使用快照视图,以便即使未检出也可以写入文件y等。然后,对于我认为已完成的所有活动,我都会更新快照视图,该视图允许我列出所有被劫持的文件。我先签出它们,然后再签入。
Note: for a tool to work directly within a ClearCase view, I have to use a snapshot view, in order to write in files even if they are not checked out yet. Then for any activity I consider finished, I update the snapshot view which allows me to list all "hijacked" files. I check-out them, then check-in them.
在这种情况下使用SVN会遇到的问题(客户端的ClearCase回购)将是:
The issue I would see with working with SVN in this case (ClearCase repo for the client) would be to:
- 引入了另一个中央存储库(意味着要提交,您必须有权访问您的私有中央SVN存储库,并且对于向客户端提交,可以访问中央ClearCase VOB-版本对象库,即ClearCase语言中的存储库。)
- 另一个分支建模,在SVN中,它是目录中的廉价副本,而在ClearCase中,它是未表示为目录的元数据(分支)。这意味着SVN检出的物理树可能与ClearCase中的快照视图更新不匹配,因为SVN检出的某些目录在ClearCase中根本不存在。
至少,使用Git,您可以:
At least, with Git, you have:
- 私有存储库(您并不是每个人都添加另一个中央存储库
- 相同的分支模型(至少在不通过目录表示分支方面))
这篇关于SVN到Clearcase导出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!