I am trying to add a file into ClearCase, but I am getting the following error:
Error adding \'C:\\PATH\\file.dbc\' to source control.
Changed Protect
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"
Note: This is the first section in the
default.magic
file.Example:
# 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:
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.