Re: [PATCH v3 12/20] remote-hg: push to the appropriate branch
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Apr 10, 2013, 19:15 UTC
- Message-ID
- <CAMP44s06gKHiEuZF41OkE7tsBn5PAkyGXvmoiqvN1keKFZczJQ@mail.gmail.com>
- In-Reply-To
- <1365441214-21096-13-git-send-email-felipe.contreras@gmail.com>
On Mon, Apr 8, 2013 at 12:13 PM, Felipe Contreras <felipe.contreras@gmail.com> wrote:
Show 9 quoted lines
> --- a/contrib/remote-helpers/git-remote-hg
> +++ b/contrib/remote-helpers/git-remote-hg
> @@ -625,6 +625,10 @@ def parse_commit(parser):
> if merge_mark:
> get_merge_files(repo, p1, p2, files)
>
> + # Check if the ref is supposed to be a named branch
> + if ref.startswith('refs/heads/branches/'):
> + extra['branch'] = ref.replace('refs/heads/branches/', '')This should be more consistent with the rest of the code:
branch = ref[len('refs/heads/branches/'):]Should I reroll?
-- Felipe Contreras