fenix2222
fenix2222

Reputation: 4730

TortoiseHg push to BitBucket fails wirh Invalid Argument error

We are using TortoiseHg with BitBucket. There are two developers working remotely on the project. Everything was running smooth for past 2 months until yesterday. Since I pulled latest updates and added my changes I cannot push to BitBucket anymore. When I use Workbench to push it gives me the following error:

abort: push creates new remote head xxxxx hint: did you forget to merge? use push -f to force

I didnt forget to merge, all my changes are commited and merged with changes from other developer.

I tried doing forced push "hg push -f --traceback" but that fails as well with:

abort: Invalid Argument Traceback (most recent call last): Fails on File "mercurial\revlog.pyo" in init

Upvotes: 3

Views: 1450

Answers (1)

David Hodgson
David Hodgson

Reputation: 10354

Have you tried doing a hg pull first? There may be some recent changes that you don't have in your local repository, that you need to merge in before you can push. (In other words, try a pull/merge/commit, then push).

Upvotes: 2

Related Questions