签入ClearCase失败 [英] Check in to ClearCase fails
问题描述
我试图将文件添加到ClearCase,但是出现以下错误:
I am trying to add a file into ClearCase, but I am getting the following error:
添加'C:\PATH\file时出错
Error adding 'C:\PATH\file.dbc' to source control.
更改了对 C:\PATH\file.dbc的保护。
Changed Protection on "C:\PATH\file.dbc".
已创建分支 C: PATH file.dbc版本 \main\0&。
Created branch "C:\PATH\file.dbc" version "\main\0".
类型管理器 text_file_delta; create_version操作失败。
Type manager "text_file_delta" failed create_version operation.
检查以下内容:
有些行的字符数超过8000,因此必须保持这种方式,因此不能使用 text_file_delta作为类型经理。我将一个文件的类型更改为 compressed_file。
Checked the following: There are lines that have over 8000 characters and they must stay that way, so it can not use the "text_file_delta" as the type manager. I changed the type of one file to "compressed_file" and I was able to check it in.
我尝试添加 dbc compression_file -name *。[dD] [bB] [cC]。 ;
到default.magic文件。然后,我尝试使用 ct文件test.dbc
进行检查,并说这是一个Compressed_file,但是当我尝试向源代码管理中添加实际的.dbc文件时,它仍然给我关于 text_file_delta的错误。失败。
I tried to add dbc compressed_file -name "*.[dD][bB][cC]" ;
to the default.magic file. Then, I tried to check it with ct file test.dbc
and it said that it is a compressed_file, but when I try to add an actual .dbc file to source control, it still gives me the error about the "text_file_delta" failing.
我是否缺少此功能?也许我将行放在default.magic文件的错误部分?
Is there something that I am missing with this? Maybe I put the line in the wrong part of the default.magic file?
注意:我能够找到的唯一default.magic文件在服务器端,这是正确的吗? ? (我希望它在这里检查,而不是每个人都必须在他们的客户端上做一个。)
Note: the only default.magic file that I am able to find is on the server side, is this correct? (I would rather it check here instead of everyone having to make one on their client.)
推荐答案
确保使用default.magic文件已考虑在内,并且位于正确的目录中,如 关于ClearCase Magic文件。
Make sure the default.magic file is taken into account, and is in the right directory, as mentioned in "About the ClearCase Magic file".
请确保您确实在该魔术文件的正确位置添加了新规则:请参见 在创建新元素时如何确定文件类型"
Make sure you did add the new rule in the right place in that magic file: see "How file types are determined when creating a new element"
注意:这是
default.magic
中的 first 部分。文件。
Note: This is the first section in the
default.magic
file.
示例:
# Match by name without examining data
core file : -name "core" ;
compressed_file : -name "*.[nN][eE][wW]";
注意:您添加的新文件键入规则必须位于以下行中魔术文件:
Note: The new file-typing rule that you add must come before the following line in the magic file:
text_file : -printable ;
compressed_file : !-printable ;
使用个人魔术文件而不是修改默认文件:
Use a personal magic file rather than modifying the default one:
警告:强烈建议您不要在下次执行升级时直接修改
default.magic
文件,而是新的default.magic
文件将创建,您的更改将丢失。
创建一个个人魔术文件,其名称按字母顺序在 d之前default.magic
文件名中的名称(例如cc.magic
)将允许ClearCase在默认值之前解析此文件。
最好创建一个个人魔术文件,并可能设置MAGIC_PATH
变量。
Caution: It is highly recommended that you not modify the
default.magic
file directly as the next time an upgrade is performed, a newdefault.magic
file will be created and your changes will be lost.
Creating a personal magic file with a name that is alphabetically before the "d" in thedefault.magic
file name (such ascc.magic
) will allow ClearCase to parse this file before the default.
It is better to create a personal magic file and possibly setting theMAGIC_PATH
variable instead.
这篇关于签入ClearCase失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!