how to fix the problem "abort: push creates new remote heads on branch 'default'!" when pushing
Isaac Jurado
diptongo at gmail.com
Sun Aug 21 05:51:49 CDT 2011
On Sat, Aug 20, 2011 at 4:54 PM, higery <shoulderhigher at gmail.com> wrote:
> Hi,
>
> I have pulled all the updates from the remote repo and merge my developing
> branch
> with the default branch, but when pushing, an error occured:
>
> $ hg push
> pushing to http://bitbucket.org/higery/cpython
> real URL is https://bitbucket.org/higery/cpython
> searching for changes
> abort: push creates new remote heads on branch 'default'!
> (did you forget to merge? use push -f to force)
>
> When I use 'hg heads default' to see all heads of the default branch, it
> showes that there are two,
>
> $ hg heads default
> changeset: 71798:7d390c3a83c6
> parent: 71795:b09d07d1f696
> parent: 71797:867ce75b885c
> user: Antoine Pitrou <solipsis at pitrou.net>
> date: Sat Aug 20 14:18:25 2011 +0200
> summary: Issue #12791: Break reference cycles early when a generator
> exits w
> ith an exception.
>
> changeset: 70851:a06c1590995e
> user: higery
> date: Tue Jul 12 15:50:27 2011 +0800
> summary: Replace a tab with 4-spaces to indent.
>
>
> Then, how to fix this problem?
Merge both heads:
$ hg update default
$ hg merge
$ hg commit
$ hg push
Cheers.
--
Isaac Jurado
"The noblest pleasure is the joy of understanding"
Leonardo da Vinci
More information about the Mercurial-devel
mailing list