Clearcase issue while “add file to source control”

我的未来我决定 提交于 2019-11-30 09:04:24

问题


I am facing a following issue while adding a file to clearcase (UCM)

---------------------------
Rational ClearCase Explorer
---------------------------
Error adding 'M:\Myviename\Myvob\Myproj\Implementation\DataSource\Deployment\BOM\SupportFiles\Service.config' to source control.

Created branch "Tm6-Proj-Dev2" from M:\Myviename\Myvob\Myproj\Implementation\DataSource\Deployment\BOM\SupportFiles\Service.config' version "\main\0".
Type manager "text_file_delta" failed create_version operation.

I tried rebase and deleted and added the file again. But facing the same. Why this occured and how to solve it?


回答1:


You will find all the know cases for this error message in this technote " Knowledge Collection: Type manager failed create_version operation"

  • Type manager size limitation - File too large
  • Text files that contain binary data - Contains a '\000'
  • Line exceeding 8000 bytes
  • Corrupt source container - not the highest on its branch

The main cause is a content incompatible with a text file (line too long, or binary content).


The OP Samselvaprabu adds:

Our IT guys used the following command "chtype Compressed_file".
After that it allowed to check-in.

As they did it in my collegue system, I was not able to ask what does this mean and how it solved the issue?

It does solve the issue (and it has nothing to do with UCM): since the text_manager doesn't recognized the content of the file as text (as illustrated, for instance, in this technote), you need to instruct ClearCase to treat it as binary content.

 cleartool chtype compressed_file
  • Pro: it allows for checkin/checkouts
  • Con: you won't be able to "compare with previous version" anymore.
    You might need to instruct that compressed_file to be always copied over instead of merged (see "Clearcase UCM is trying to merge pdf files")

For certain set of files, you could also modify the magic file to automate that process: see "Check in to ClearCase fails".




回答2:


Which type of view are you using ? Static(Snapshot) or Dynamic ? check if file is already there on the main. If the file is already there on main (which means file is Versioned file) then before editing you should check-out file and then after making changes you need to check in. If you are using versioned file and you if made changes to this versioned file then it will be a hijacked file, (you will see red+green mark for on the file in clear case explorer). Try out once.



来源:https://stackoverflow.com/questions/12074369/clearcase-issue-while-add-file-to-source-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!