mercurialmercurial-phases

Can "secret" be set to the default phase of mercurial?


I would like to create "secret" commit instead of "draft" commit by default in a mercurial project. Is there any way to configure mercurial so that the default phase is "secret" instead of "draft" ?


Solution

  • From hg help phases

    To make yours commits secret by default, put this in your configuration
    file:
    
      [phases]
      new-commit = secret