Check in to ClearCase fails

前端 未结 1 792
面向向阳花
面向向阳花 2021-01-24 05:54

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

相关标签:
1条回答
  • 2021-01-24 06:36

    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 new default.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 the default.magic file name (such as cc.magic) will allow ClearCase to parse this file before the default.
    It is better to create a personal magic file and possibly setting the MAGIC_PATH variable instead.

    0 讨论(0)
提交回复
热议问题