From: Felipe Contreras Date: Wed, 10 Apr 2013 19:15:53 GMT Subject: Re: [PATCH v3 12/20] remote-hg: push to the appropriate branch Message-ID: In-Reply-To: <1365441214-21096-13-git-send-email-felipe.contreras@gmail.com> On Mon, Apr 8, 2013 at 12:13 PM, Felipe Contreras wrote: > --- 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