在“将文件添加到源代码管理”中时出现Clearcase问题 [英] Clearcase issue while "add file to source control"

查看:139
本文介绍了在“将文件添加到源代码管理”中时出现Clearcase问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将文件添加到clearcase(UCM)时遇到以下问题

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?

推荐答案

您将在此技术说明
知识宝典:类型管理器的create_version操作失败


  • 类型管理器大小限制-文件太大

  • 包含二进制数据的文本文件-包含'\000'

  • 行超过8000字节

  • 源容器已损坏-不是其分支机构中最高的容器

  • 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).

OP Samselvaprabu 添加:


我们的IT人员使用以下命令 chtype Compressed_file

之后,它可以检查-在。

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?

它确实解决了问题(与UCM无关):因为text_manager无法识别文件作为文本文件(例如,如图所示,在本技术说明中),您需要指示ClearCase将其视为二进制内容。

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:它允许签入/签出

  • 缺点:您将无法再与以前的版本进行比较。

    您可能需要指示始终将压缩文件复制而不是合并(请参阅 Clearcase UCM尝试合并pdf文件

  • 对于某些文件集,您还可以修改魔术文件以自动执行该过程:请参见 < a href = https://stackoverflow.com/questions/11438975/check-in-to-clearcase-fails>签入ClearCase失败。

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

    这篇关于在“将文件添加到源代码管理”中时出现Clearcase问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆