threads / discuss / 35698

git-remote-hg

Subject: git-remote-hg

## tl;dr

2 messages between Jan 20, 2014 and Apr 12, 2014.

replies: 1people: 2as markdown or json

Christophe· Jan 20, 2014, 17:18 UTC · lore
Hi,

I am using git-remote-hg to access to projects on bitbucket. I can clone the master branch fine and push to it. I also see hg branches as remotes/origin/branches/«branch». However, if I create a local branch "branches/x" and want to push it to remotes/origin/branches/x, it gets pushed to the remote master (aka default) branch.

What is the recommended way of working with multiple branches when interacting with a remote hg repository?

Best, C.

P.S. The remote helper also prints many lines like:
error: Object 4a83cec050af8749b3eacc9da9b216350bb86c07 already has a mark
Felipe Contreras· Apr 12, 2014, 21:42 UTC · re: Christophe · lore

RE: git-remote-hg

Christophe wrote:
Show 5 quoted lines
> I am using git-remote-hg to access to projects on bitbucket.  I can clone the
> master branch fine and push to it.  I also see hg branches as
> remotes/origin/branches/«branch».  However, if I create a local branch
> "branches/x" and want to push it to remotes/origin/branches/x, it gets pushed
> to the remote master (aka default) branch.
Which version of the script and Git are you using?

If I do `git push origin branches/test` it works fine, I can see the branch in bitbucket.

> What is the recommended way of working with multiple branches when
> interacting with a remote hg repository?

My recommendation is to avoid them (I don't see the point of them), but they should work.

-- 
Felipe Contreras

← back to recent threads