Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolve "abandoned transaction" when I use "hg push"?

We work with a sourceforge project. When we try to push, then mercurial abort :

$ hg push

pushing to ssh://<user>@hg.code.sf.net/p/loremipsum/code
searching for changes
remote: abort: abandoned transaction found - run hg recover!
abort: unexpected response: empty string

And when we try to recover that doesn't work :

$ hg recover
no interrupted transaction available

The other programmers of the project have the same problem. We are a lost.

like image 466
user1810567 Avatar asked Jan 08 '13 15:01

user1810567


3 Answers

In my case I had to run

hg recover

on the remote machine to which I was pushing to. It fixed the problems and I could push the changes from my machine.

like image 116
splattne Avatar answered Nov 18 '22 22:11

splattne


You can login to sourceforge by ssh (https://sourceforge.net/p/forge/documentation/Shell%20Service/). Go into your hg folder, e.g. /home/hg/p/YOURPROJECTNAME/code, run hg recover here. Then everything's OK.

like image 26
Minmin Gong Avatar answered Nov 18 '22 22:11

Minmin Gong


If you are using bitbucket.com cloud solution and you get this error you need to open a ticket so they will run hg recover on their server.

They are very fast at answering tickets of this variety.

like image 3
Mugur 'Bud' Chirica Avatar answered Nov 18 '22 23:11

Mugur 'Bud' Chirica