Betr: Re: Re: Betr: Re: Many missing revlogs, do we have a problem?
Alban Hertroys
alban.hertroys at apollovredestein.com
Thu Jun 18 10:08:38 UTC 2015
Simon King <simon at simonking.org.uk> wrote on 18/06/2015 11:53:35:
> >> Out of interest, if you take a fresh clone from the server and run
"hg
> >> verify" in the clone, does it report any issues?
> >
> > I don't know, the clone gets rolled back due to the errors in the
server's
> > repo.
> > There doesn't appear to be a way to prevent that rollback either.
> >
>
> OK, in that case, you could start by doing this:
>
> 1. Create an empty directory on your local system (let's call it
"recovery")
>
> 2. Copy the .hg directory from the server into this recovery directory.
>
> 3. Run "hg verify" in the recovery directory. You will presumably get
> the same set of errors that you get on the server
Correct.
> At this point, you could try adding the missing .i files into this
> recovery repository, but I don't think that will be sufficient. From a
> previous message of yours, it sounds like the fncache file (which
> serves as an index of the revlogs in the repository) may have been
> truncated.
Verify does indeed still fail after adding those 2 files.
However, cloning it succeeds! And it even updated the directory contents
to the tip revision!
C:\ibi>hg clone recovery recovery_clone
requesting all changes
adding changesets
adding manifests
adding file changes
added 2725 changesets with 27089 changes to 18032 files (+10 heads)
pull obsolescence markers
17 obsolescence markers added
updating to branch default
11528 files updated, 0 files merged, 0 files removed, 0 files unresolved
C:\ibi>cd recovery_clone
C:\ibi\recovery_clone>hg verify
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
18032 files, 2725 changesets, 27089 total revisions
So it looks like I could at least use this to get me a working clone to
move to production. Thanks!
I don't suppose it would be safe to copy such a clone's fncache to our
master repo?
alban.hertroys at apollovredestein.com
T:
Apollo Vredestein B.V. - P.O. Box 27 - 7500 AA Enschede - The Netherlands -
Chamber of Commerce number 34223268 - http://www.apollovredestein.com
The information contained in this e-mail is intended solely for the use of the
individual or entity to whom it is addressed and others authorized to receive
it. You are hereby notified that any disclosure, copying, distribution or
action in relation to the contents of this information is strictly prohibited.
If you are not the intended recipient, please delete this message and any
attachments and advise the sender by return e-mail. The confidentiality of this
message is not warranted. Apollo Vredestein B.V. rules out any and every
liability resulting from this or any other electronic transmission.
More information about the Mercurial
mailing list