I've created a named
branch in mercurial, committed some changes, and now I want to push that back to the central repo. I've done a fetch, verified I have no changes to merge, but when I try to do the push, I'm getting the message push creates new remote head
but I don't understand why. I'm the only dev on this branch and it is still local to my repository.
>hg fetch (pull/update/merge)
>hg status (shows nothing)
>hg push --new-branch mybranch
searching for changes
new remote heads on branch 'default'
new remote head c3064f3cf1b7
abort: push creates new remote head c3064f3cf1b7!
(did you forget to merge? use push -f to force)
Any ideas?
Edit: sorry for any confusion, this is a named branch created by hg branch mybranch
Update: using hg heads
yields multiple heads all on different branches. I have one for my branch, and one under default:
changeset: 515:97b9a7802751
branch: mybranch
user: me <[email protected]>
date: Mon Feb 27 13:21:54 2012 -0800
files: CryptoRandom.cs
description:
fixing error message for size of max
changeset: 504:c3064f3cf1b7
user: me <[email protected]>
date: Thu Feb 09 11:41:32 2012 -0800
files: CipherKey.cs
description:
removing ambiguous characters - CAC-47
using hg log -r c3064f3cf1b7
yields the following (this is the head on default):
changeset: 504:c3064f3cf1b7
user: me <[email protected]>
date: Thu Feb 09 11:41:32 2012 -0800
files: CipherKey.cs
description:
removing ambiguous characters - CAC-47
hg heads
will show you all heads. That ought to tell you wherec3064f3cf1b7
stands with other heads, too. – Joel B Fanthg log -r c3064f3cf1b7
. It seems you have not new named branch, but anonymous branch in default – Lazy Badgerdefault
branch from the other repo that you wanted to push to? – Joel B Fantdefault
and not ready to merge back yet. Do I really need to switch todefault
and pull? – earthling