我们使用 Jenkins 进行持续集成,并且在一项工作中 Jenkins 将文件 checkin 到 Clear Case Integration Stream 中。最近在一项作业中,ClearCase checkin 失败,并显示以下消息:
cleartool: Error: Operation "create_version" unavailable for manager "_xxx_file"
(Operation pathname was:
"D:\Programs\IBM\RationalSDLC\ClearCase\lib\mgrs\_xxx_file\create_version")
cleartool: Error: Unable to store new version. cleartool: Error:
Unable to check in "Path/To/File/xxx
我能够追溯到错误,但从那时起 ClearCase 中的文件就变得困惑了。每次有人尝试更新连接到集成流的 View 时,他都会收到以下错误消息:
Unable to load "xxx": unknown error in VOB.
我在 Rational Explorer 或 Windows Explorer 中看不到该文件,但是当我在包含的文件夹上单击“与以前的版本比较
”时,我可以在两个窗口中看到该文件(属于到当前和以前的版本)。
这种行为真的让我很困惑。
我对 Clear Case 还很陌生,我希望有一种简单的方法来检索以前的版本(类似于 git revert
)。
最佳答案
I would love to have a simple way to retrieve the previous version (something similar to git revert).
如果您确实认为要恢复新的有问题的版本,您可以使用 cleartool rmver
完全删除它。 (如 I used it here )。但这是相当危险的。
但在这里,该版本可能从未创建,因为错误消息以“操作“create_version”不可用
”开头
您可以在 this technote 中看到此错误消息(关于 ClearCase MultiSite)
This issue occurred after the following sequence of events:
- VOBs were being moved from an old server to a new server along with upgrading ClearCase from an older version to 7.x.
- A new type manager had been created on the old server along with an element type called
keyed_text_file_delta
.The error occurred because the new type manager and element type
keyed_text_file_delta
did not exist on the new server.
因此请仔细检查 type manager 是否“_xxx_file
”仍然存在于您的 VOB 中,使用 cleartool lstype
.
关于version-control - 清除大小写错误 : File messed up after failed checkin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44891146/