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

375 Views Asked by At

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" ?

1

There are 1 best solutions below

3
On BEST ANSWER

From hg help phases

To make yours commits secret by default, put this in your configuration
file:

  [phases]
  new-commit = secret