Fwd: Restoring files from a corrupt bundle

Erik Muttersbach erik at muttersbach.net
Mon Nov 29 12:28:28 CST 2010


---------- Forwarded message ----------
From: Erik Muttersbach <erik at muttersbach.net>
Date: Mon, Nov 29, 2010 at 7:25 PM
Subject: Re: Restoring files from a corrupt bundle
To: Matt Mackall <mpm at selenic.com>


If I use the cat command on changed files I get the following:

hg -R ../../sc2/68a8f24f62d0-backup.hg cat -r 986d0d73e1b9 sc2-master/build.xml
abort: data/sc2-master/build.xml.i at 8bebfb85e319: no match found!

I replaced the "raise ..." statement with a pass and now the program
runs for quite a while. I'll let it do an report.

One problem might be: I have commited two files which are some GB big.
This commit is included in the patch - can this be a problem?

Erik

On Mon, Nov 29, 2010 at 6:50 PM, Matt Mackall <mpm at selenic.com> wrote:
> 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