Re: [PATCH v3 05/10] remote-hg: fix new branch creation
From: Felipe Contreras <hidden>
Date: 2016-06-15 22:57:16
On Wed, May 15, 2013 at 2:40 PM, Junio C Hamano [off-list ref] wrote:
Felipe Contreras [off-list ref] writes:quoted
Felipe Contreras wrote:quoted
When force_push is disabled, we need to turn the argument to True.With your follow-up clarification, here is what ended up in the log message: remote-hg: fix new branch creation When a user creates a new branch with git: $ git checkout -b branches/devel and then pushes this branch $ git push origin branches/devel which is the way to push new mercurial branches,
I don't like this part. This is not documentation, this is a commit message. You don't explain how git works in every commit message. It's not relevant how to create Mercurial branches, it could be done through a totally different way and it wouldn't affect this patch. The only thing that is relevant is that a new Mercurial branch is created somehow. But since you never, *ever*, agree that a piece of information in the commit message is not useful, I realize this is wasted breath.
we do want to
create a branch, but the command would fail without newbranch=True.
This only matters when force_push=False, but setting newbranch=True
unconditionally does not hurt.
The only part that I came up with on my own is "but ... does not
hurt" at the end. If that is incorrect, please supply an update.It's correct. -- Felipe Contreras