BzrCheckError: Internal check failed: revno does not match len(mainline) 714 != 0

Bug #389254 reported by Matt Nordhoff
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

While running "bzr check", I've gotten this error on several occasions, while it tries to check a branch.

On the first occasion, I was checking a remote (LP, in fact) repo/branch over bzr+ssh (yes, I know that's terribly slow). I tried to reproduce it afterwards but was unable to. It's possible the branch got written to while I was checking it.

Anyway, on this occasion, it happened on bzr.dev/bzrlib/plugins/bzrtools, which is a symlink pointing to a branch in a different repository, so obviously it can't just be checked in this repo. I'm pretty sure this one is reproducible, because I think I got it while checking the repo another time a few weeks ago.

bzr.dev r4459, Ubuntu 8.04.

Revision history for this message
Matt Nordhoff (mnordhoff) wrote :
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 389254] [NEW] BzrCheckError: Internal check failed: revno does not match len(mainline) 714 != 0

If you can reproduce, please run with BZR_PDB=1 and poke around a bit.

-Rob

Revision history for this message
Matt Nordhoff (mnordhoff) wrote :

Yeah, I can definitely reproduce it, just by doing "bzr check --branch
bzr.dev/bzrlib/plugins/bzrtools".

I have to admit, I've never used pdb before. I'm not against learning,
but it'd be faster if someone who is not me tried to do it. :-P

Revision history for this message
Robert Collins (lifeless) wrote :

On Thu, 2009-06-18 at 23:59 +0000, Matt Nordhoff wrote:
> Yeah, I can definitely reproduce it, just by doing "bzr check --branch
> bzr.dev/bzrlib/plugins/bzrtools".
>
> I have to admit, I've never used pdb before. I'm not against learning,
> but it'd be faster if someone who is not me tried to do it. :-P

I've been checking bzrtools hundreds of times recently while I was
putting my check patch together. Never saw this.

-Rob

Revision history for this message
Matt Nordhoff (mnordhoff) wrote :

Robert Collins wrote:
> On Thu, 2009-06-18 at 23:59 +0000, Matt Nordhoff wrote:
>> Yeah, I can definitely reproduce it, just by doing "bzr check --branch
>> bzr.dev/bzrlib/plugins/bzrtools".
>>
>> I have to admit, I've never used pdb before. I'm not against learning,
>> but it'd be faster if someone who is not me tried to do it. :-P
>
> I've been checking bzrtools hundreds of times recently while I was
> putting my check patch together. Never saw this.
>
> -Rob

It's not about bzrtools; it's about the symlink. (bzrtools does actually
pass if I check it directly.)

Steps to reproduce:

bzr init-repo a
bzr init-repo b
bzr init a/branch
bzr init b/branch
bzr ci --unchanged -m a a/branch/
bzr ci --unchanged -m b b/branch/
ln -s ../../b/branch a/branch/b
bzr check a
--

Revision history for this message
Krisztian Bolla (krisztian-bolla) wrote :

I have the same error message in one of my projects repository. The only different is that the 2 revno is the followwin 43!=44 When I am making a new commit both of those number will increase. How can I repair my repository?

Revision history for this message
Martin Pool (mbp) wrote :

Krisztian, 'bzr reconcile' should fix this.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.