I believe my most recent commit in Mercurial has become corrupt. I cannot commit anything anymore, nor can I rollback.
I ran hg verify which suggested I should run hg recover. I then ran hg recover as suggested and I am now getting the error:
abort: index 00manifest.i is corrupted!
According to this post: http://osdir.com/ml/version-control.mercurial.general/2007-03/msg00099.html I should be able to remove the last 64 bits from the 00manifest.i file and start working again.
Is this correct and how would I go about doing so?
PS. Everything I have done so far has been on a clone of the original repository.
Many thanks,
Andy
You can truncate
00manifest.iusing a Python console:First, the file is read in binary mode.
datais just a string. Then slicing is used to write back all but the last 64 bytes, again in binary mode.