Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix Mercurial repository after collapse and rollback?

Tags:

mercurial

I used the Mercurial collapse command and then attempted a rollback). I now know that this is something that I shouldn't have done.

hg status
abort: working directory has unknown parent 'e1f07eea60bf'!

The working copy contains a reasonably recent version, at least, but I can't commit it.

hg commit
abort: 00changelog.i@e1f07eea60bf: no node!

How would you best recover from this situation? With regards to history, most of it has been pushed to the central repository anyway.

like image 386
Casebash Avatar asked Oct 05 '10 01:10

Casebash


1 Answers

Try hg debugsetparent xxxx, It's not the safest command in the world, but it should help you out. Set the parent to a revision that is in your log.

like image 175
Ry4an Brase Avatar answered Oct 24 '22 08:10

Ry4an Brase