Comment 3 for bug 363444

Revision history for this message
James Westby (james-w) wrote : Re: unshelve crashes if there is a revert and file shelve.

#!/bin/bash
set -e
rm -rf test
bzr init test
(cd test && bzr ci -m "Commit." --unchanged && touch test2 test3 && bzr add && bzr shelve --all && bzr -Derror unshelve)

That's a minimal test case, i.e. simply adding shelving two adds and unshelving shows
the crash.

The issue is that while the serialized transform contains records for both added files, only
the first is yielded by the "records" that is passed to deserialize() (and it's only one
if you do it with three files as well). Could it be a bug in the bencode that makes it
think the end of the file has arrived after the first added file record?

Thanks,

James