Comment 4 for bug 393366

Revision history for this message
David I (david-ingamells) wrote : Re: [Bug 393366] Re: bzr annotate exceptions.KeyError

Found a sequence that fails!
This uses 2 different machines and bzr+ssh, but I don't know yet if that
is a factor.

The ". .profile" is to get bzr in the path as we're using a
self-installed version of bzr to ensure that everyone is using the same
version.

#!/bin/bash

bzr init --1.9-rich-root 1.0

# the following init does not result in a fail:
#bzr init 1.0

cd 1.0
echo "Hello" > file
bzr add file
bzr commit -m "first file"
bzr remove-tree

ssh mscvs01 ". .profile; cd temp/bzr/work; bzr branch --stacked
bzr+ssh://msdes002/data/users/david.ingamells/temp/bzr/repos/1.0"

ssh mscvs01 ". .profile; cd temp/bzr/work/1.0; bzr annotate file"

bzr checkout
echo "Hello too" >> file
bzr commit -m "Updated file"

ssh mscvs01 ". .profile; cd temp/bzr/work/1.0; bzr pull"
ssh mscvs01 ". .profile; cd temp/bzr/work/1.0; bzr annotate file"

cd ..
rm -rf 1.0
ssh mscvs01 ". .profile; cd temp/bzr/work/; rm -rf 1.0"

Martin Pool wrote:
> 2009/6/29 David I <email address hidden>:
>
>> It does also occur in about the smallest repos (see above) I have
>> available here:
>> One with about 30 files and a current revno of 133.
>>
>
> I meant, can you give us a script that will reproduce the failure that
> we can run here.
>
>