[MERGE][RFC] Add simple revision serializer based on RIO.

Alexander Belchenko bialix at ukr.net
Tue May 12 16:31:52 BST 2009


John Szakmeister пишет:
> On Tue, May 12, 2009 at 10:07 AM, John Arbash Meinel
> <john at arbash-meinel.com> wrote:
> [snip]
>> If you get 'corrupted' data somehow, it is much easier to see what
>> should be there with something like RIO, rather than bencode. If only
>> because of the natural line-breaks in RIO.
> 
> FWIW, I've repaired well over 400 broken Subversion revisions by
> hand... and having the FSFS format be so human-readable has been
> tremendously beneficial.  Note that the FSFS format isn't entirely
> human-readable: the actual deltas are stored as binary.  Despite that
> fact, it's still been very useful.

This is interesting point, because inside bzr there is places that not 
always followed this paradigm.

Look at `pack-names` control file.

In the pack-0.92 format this file is plain text file and human readable 
(and I guess human writable). So (in the theory) user can restore the 
repository if there is some obsolete_packs around.

In the 1.9 format this file contains some binary data (and even not 
bencode!) so I don't see the way to repair it if needed.

Why?

Revision objects are stored in pack files that again uses very complex 
binary format, not human-readable. Perhaps I'm missing something important?





More information about the bazaar mailing list