Making "hg push -r foo" changes phases

Jordi Gutiérrez Hermoso jordigh at
Fri Jun 14 13:32:30 CDT 2013

On 14 June 2013 14:25, Nikolaj Sjujskij <sterkrig at> wrote:
>  By the way, have you considered using [alias]
> secretpush = !$HG phase -d $@ ; $HG push -r $@

I'm still trying to figure out a way to use secret phases that seems
to make sense to everyone I talk to. Making everyone else use the
secretpush alias seems a bit wrong.

I think a proposal I had earlier for giving commit a --secret option
might make more sense. You know at the time of committing something if
that something should probably not be shared yet. Also, going from
secret to anything else doesn't require a force from hg phase, but
going from anything to secret does.

I'll prepare a patch for the latter .

- Jordi G. H.

More information about the Mercurial-devel mailing list