Comment 1 for bug 670165

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 670165] [NEW] assertion error on bzr get_next() called when there are no chars left

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/2/2010 5:53 PM, dlebauer wrote:
> Public bug reported:
>
> bzr 2.0.3 on python 2.4.3 on linux redhat
>
...

> File "_dirstate_helpers_pyx.pyx", line 554, in bzrlib._dirstate_helpers_pyx.Reader.get_next
> AssertionError: get_next() called when there are no chars left

This indicates a corrupted dirstate file. We expected there to be more
content (the end-of-content has not been reached), but there are no
bytes left.

Generally this means the file was truncated/corrupted by the filesystem.

The easiest way to fix it, is to check out into another location, and
then copy the .bzr/checkout/dirstate file over.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzRgQIACgkQJdeBCYSNAAP5GgCgqRW+3HP7wO8IVPM+0TrGA12V
XwIAoINnahb3apoYZznMoIMcQnn6mqFb
=koNq
-----END PGP SIGNATURE-----