JDK 9 Sandbox Development Forest

Chris Hegarty chris.hegarty at oracle.com
Tue Dec 16 14:18:19 UTC 2014


On 16 Dec 2014, at 12:19, Jaroslav Bachorik <jaroslav.bachorik at oracle.com> wrote:

> ...
>> 
>>> Is it easy to push anything to the default branch if I am mostly working on my own branch? Also, is there a server-side hook that rejects such pushes?
>> 
>> There is no hook preventing pushes to the default branch. Please be careful.
> 
> There is a workaround. In your <repo>/.hg/hgrc you can specify 'defaults'
> 
> ```
> [defaults]
> push = -b <feature_branch>
> outgoing = -b <feature_branch>
> ```
> 
> After this the `hg push` and `hg outgoing` will have the '-b' option appended, effectively allowing you to work on the <feature_branch> only.

Thanks for this Jaroslav. 

You need to be on the specific branch when you commit, of course, but the ‘-b’ option on ‘out’ and ‘push’ will help catch mistakes. I’ll update the document. 

-Chris.

> 
> -JB-



More information about the jdk9-dev mailing list