clearcaseclearcase-automation

ClearCase Checkin Message


In ClearCase GUI, when I tried to check-in, an empty comment field will be shown, which I can fill in check-in messages.

Is it possible to set template for this message?

For example, when the team need to checkin, below message will be shown, and each team member can just fill in the commit message.

Reviewer:
Test suggestion:

Thanks


Solution

  • There is no native template mechanism that I know of.

    You can try and see if the ClearCase environment variables could help, like setting in a pre-op checkin trigger a:

    CLEARCASE_CMNT_PN
    

    The path name of the file in which cleartool and multitool cache the most recent user-supplied comment. Defining or removing this EV enables or disables comment caching.

    (and make sure that file contains a message template)

    That thread from 2005 though mentions:

    The CLEARCASE_* environment variables are effectively read only (changes to them have no effect.)
    Some potential options are:

    • A) reject comments that do not meet your template and make the user fix them and redo the checkin/out
    • B) put a wrapper around checkout/in operations to meet your template needs
    • C) use 'ct chevent' to change the comment during a postop trigger
    • D) use attributes, hlinks, or labels to store the information instead of using the comment field. (You can apply the attributes, hlinks, or labels during the preop)

    I'm thinking that C or D might be your better choices.