Comment 3 for bug 1008223

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1008223] Re: Error when pushing through smart server

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

On 6/4/2012 1:00 AM, Martin Packman wrote:
> It seems like you have a broken pack-names file in the repository
> in question, can you find it (inside .bzr/repository on the server)
> and attach it to the bug please?
>
> If you want to see exactly where that dodgy value is, try running
> the following script:
>
> import pprint from bzrlib import ( btree_index, transport, )
>
> url = "file:///path/to/repo/.bzr/repository" t =
> transport.get_transport(url) idx = btree_index.BTreeGraphIndex(t,
> "pack-names", None) pprint.pprint(list(idx.iter_all_entries()))
>
> ** Changed in: bzr Status: New => Incomplete
>

Note that we also have:
  bzr dump-btree [--raw] .../.bzr/repository/pack-names

To debug these things as well without having to go into a python script.

John
=:->

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

iEYEARECAAYFAk/OHywACgkQJdeBCYSNAANjnQCgpkiEl9CKaVKhZ3k9cb//giDn
e1MAoKOaHcIcmyo0u1/zjLi+cxzfJwam
=iP4K
-----END PGP SIGNATURE-----