Comment 2 for bug 1018628

Revision history for this message
Nils Durner (ndurner) wrote : Re: Switching to previous rev corrupts branch

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

5. bzr log to check if the branch work again