[PATCH 2 of 2] discovery: abort also when pushing multiple headed new branch

Matt Mackall mpm at selenic.com
Wed Sep 18 18:34:27 CDT 2013


On Thu, 2013-09-05 at 20:13 -0500, Kevin Bullock wrote:
> On 29 Aug 2013, at 7:31 AM, FUJIWARA Katsunori wrote:
> 
> > # HG changeset patch
> > # User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
> > # Date 1377777067 -32400
> > #      Thu Aug 29 20:51:07 2013 +0900
> > # Node ID 8f21d790d3b03569f70043e4690b056e0de84795
> > # Parent  7cee001f451b6a097ed754db1a988d1035362eaf
> > discovery: abort also when pushing multiple headed new branch
> > 
> > Before this patch, pushing with --new-branch permits to create
> > multiple headed branch on the destination repository.
> > 
> > But permitting to create new branch should be different from
> > permitting to create multiple heads on branch.
> > 
> > This patch prevents from careless pushing multiple headed new branch,
> > and requires --force to push such branch forcibly.
> 
> I think I agree that this is a desirable fix, but I'd like to hear other opinions.

Sounds right to me.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list