Restoring files from a corrupt bundle

Matt Mackall mpm at selenic.com
Mon Nov 29 11:50:26 CST 2010


On Mon, 2010-11-29 at 18:31 +0100, Erik Muttersbach wrote:
> Hi,
> 
> I have a bundle file from a strip command. If I want to restore it I get
> the following error:
> 
> hg unbundle .hg/strip-backup/68a8f24f62d0-backup.hg 
> adding changesets
> adding manifests
> adding file changes
> transaction abort!
> rollback completed
> abort: received file revlog group is empty

What happens if you comment out this abort at localrepo.py:~1751? (hint:
replace it with 'pass')

Does the result pass verify?

> I also tried a pull without success:
> 
> hg pull .hg/strip-backup/68a8f24f62d0-backup.hg 
> pulling from .hg/strip-backup/68a8f24f62d0-backup.hg
> searching for changes
> adding changesets
> transaction abort!
> rollback completed
> abort: data/sc2-local.tar.i at 2cad29d699f8: no node!

Interesting. You may be able to recover pieces with:

hg -R <bundle file> log / cat / etc.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial mailing list