如何用ClearCase跟踪第三方资源而不会感到头疼? [英] How to track third-party sources with ClearCase without a headache?
问题描述
首先:我不是经验丰富的ClearCase用户,但是我在使用其他VCS和* nix命令行工具方面有很多经验。在ClearCase中,我使用在Unix Shell中工作的命令行工具( cleartool)。
First of all: I am not an experienced ClearCase user, but I have lots of experience with other VCS and *nix command-line tools. WIth ClearCase, I use command-line tool ("cleartool") working in a Unix shell.
问题:我在ClearCase中存储了一小部分资源。偶尔会有一个带有相同源的新.tgz出现,我不得不更新存储库中的源(无法更改流程,以便其他方可以使用ClearCase)。
Problem: I have a small set of sources stored in the ClearCase. Once in a while a fresh .tgz with the same sources comes in and I have to update sources in the repository (process could not be changed so that other party will use ClearCase).
现在我要执行以下操作:
Now I do the following:
- 将tgz提取为〜/ new_src
- ct setview ...和cd到源所在的位置(例如, / vobs / src)
- 我将源与 diff -Naurb进行比较。 〜/ new_src,检查diff的输出,然后:
- Extract tgz into, say, "~/new_src"
- "ct setview ..." and cd to the place where the sources are (say, "/vobs/src")
- I compare the sources with "diff -Naurb . ~/new_src", examine diff's output and:
- 将新文件复制到/ vobs / src并对其执行 cleartool mkelem
- 签出更改的文件,复制新源并将其提交
- 对新目录执行 cleartool mkdir并填充它们
这个过程使我发疯,因为在几乎所有其他版本控制系统中,我都只是签出源代码,将新的源代码复制过来,检查差异,添加新文件,然后全部提交。或者,更好的是,使用标签/分支,尽管在这种情况下实际上并不需要它们-我需要在仓库中拥有最新版本的资源,仅此而已。
This process is slowly driving me crazy since in almost any other version control system I would just checkout the sources, copy new sources over, examine diffs, add new files and then commit the whole lot. Or, better yet, use tags/branches, though they are really not needed in this case - I need to have an up-to-date version of the sources in the repo, that's all.
我试图检出所有内容(使用 cleartool co -nc find。
),复制新源,然后提交更改的文件/之后添加新文件。但这需要解析 cleartool ls输出,甚至更加混乱。
I tried to checkout everything (using "cleartool co -nc find .
"), copy new sources over, and commit changed files/add new files afterward. But this requires parsing of the "cleartool ls" output and is even messier.
我可能会错过一些明显的东西,但是Google的几次尝试告诉我我不是。但是,我想从ClearCase超级用户那里听到它-是否有像我这样的笨蛋的希望? :)
I could miss something obvious, but several forays into Google tell me that I'm not. However, I'd like to hear it from ClearCase powerusers - is there any hope for clueless like me or not? :)
推荐答案
我只想确定:
您确实了解 clearfsimport ,对吗?
You do know about clearfsimport, right ?
由于(可能过快)阅读了您的问题,因此该命令可能就是您想要的...
Because after reading (may be too quickly) your question, that command may be what you are after...
这就是我的想法...如果您需要更多详细信息,请对此答案发表评论。我会监视这些。
That is what I thought... If you need more details, leave a comment to this answer. I will monitor those.
这篇关于如何用ClearCase跟踪第三方资源而不会感到头疼?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!