To rescue the corrupted branch:
1. echo "Bazaar Branch Format 7 (needs bzr 1.6)" > .bzr/branch/format
2. echo > .bzr/branch/location
3. open .bzr/checkout/dirstate, search for the most recently changed filename and copy the ID from the end of the line (between @ and ^@, starts with the user's email address)
4. enter the last revision number and the ID in .bzr/branch/last-revision:
echo "2 <email address hidden>" > .bzr/branch/last-revision
To rescue the corrupted branch:
1. echo "Bazaar Branch Format 7 (needs bzr 1.6)" > .bzr/branch/format
2. echo > .bzr/branch/ location
3. open .bzr/checkout/ dirstate, search for the most recently changed filename and copy the ID from the end of the line (between @ and ^@, starts with the user's email address)
4. enter the last revision number and the ID in .bzr/branch/ last-revision: last-revision
echo "2 <email address hidden>" > .bzr/branch/
5. bzr log to check if the branch work again