[MERGE] 'bzr dump-btree'

John Arbash Meinel john at arbash-meinel.com
Wed Oct 8 22:59:55 BST 2008


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

This adds a new hidden command "dump-btree". The really great thing
about btree indexes is that they are compressed, so you can fit lots of
info in a small space. The really bad thing is that they are compressed,
so you can't just open them up in a text editor and see what is there.

So I'm adding a command "bzr dump-btree [--raw]". In normal mode, it
spits out the tuples that the btree contains. In '--raw' mode, it just
decompresses the bytes and spits them out directly. With a tiny amount
of extra info to declare where the pages start.

I also find this useful when debugging the "pack-names" file, as I've
frequently read it to figure out what pack files are actually referenced
(since you can get some cruft in your packs/* directory).

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

iEYEARECAAYFAkjtLVsACgkQJdeBCYSNAANa5QCgsKoPtZYObUMQeMCAQmQixC1U
mzYAoNmwx4FavhOwKnA4Ce7ChuBDBMFw
=tYQ8
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dump_btree.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20081008/e498cc51/attachment.diff 


More information about the bazaar mailing list