[MERGE] Fix bug causing file deltas to be added to wrong versionedfile

Aaron Bentley aaron.bentley at utoronto.ca
Fri Aug 17 01:54:11 BST 2007


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

Aaron Bentley wrote:
> Hi all,
> 
> There's a bug in the revision installation code for bundle format 4.  In
> some circumstances, this can cause texts to be written to the wrong
> versionedfile.
> 
> For this to happen:
> 1. A file must be present in a bundle, all of whose revisions are
> present in the target branch
> 2. There must be file versions after this file.
> 
> It's a pretty rare case.  Today is the first time I've stumbled on it.
> The chance for data corruption is essentially none-- the worst that can
> happen is that an unreferenced record will be written (if this record
> was referenced, but not present in the target branch, that would
> contradict rule 1).

Here's a clean patch.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGxPGz0F+nu1YWqI0RAhQiAJ41nEo/Ef3pxZoe7GpLZCShe66uEwCfVxry
yL7BKEgx+iSZ88NclhqS/sE=
=E9hP
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrong-versionedfile.patch
Type: text/x-patch
Size: 5626 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070816/f861e3bb/attachment.bin 


More information about the bazaar mailing list