]> Cypherpunks repositories - gostls13.git/commit
codereview: don't warn about secret commits
authorAnthony Martin <ality@pbrane.org>
Tue, 4 Jun 2013 22:02:28 +0000 (15:02 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 4 Jun 2013 22:02:28 +0000 (15:02 -0700)
commit2bcc30891ca4f2c04daf4aa07d78cb8868a6fa40
treeaad6499d71741798c91cff0e9e39d0de3bfc6784
parent251baea1afc07f3ca7ca10935aaba1476cfd34d9
codereview: don't warn about secret commits

Normally the codereview plugin disables adding new commits
when not using the submit command. Unfortunately this makes
it impossible to use the Mercurial Queues extension at the
same time.

A feature called "Phases" was introduced in Mercurial 2.1
that allows marking commits as being secret; this means
they will never be pushed to the upstream repository.

We can take advantage of this feature to allow the use of
Mercurial Queues if the mq.secret option has been set in
hgrc(5) and a recent version of Mercurial is used.

R=golang-dev, rsc, minux.ma
CC=golang-dev
https://golang.org/cl/7398055
lib/codereview/codereview.py