As seen in the ML thread, this is caused by an empty pack file.
The attached script will help restore the *repository* in a working state (by getting rid of the reference to the empty pack file) but will not fix any branch that refer to it (nor restore its content which is lost for good :-/).
Fixing the branch itself can be achieved while keeping the changes in the working tree and committing again which will create a new pack file.
To get there:
- create a branch based on a valid revision,
- copy the 'last-revision' file in '.bzr/branch' from the good branch to the broken one
- 'bzr st' and 'bzr diff' should show you the uncommitted changes
As seen in the ML thread, this is caused by an empty pack file.
The attached script will help restore the *repository* in a working state (by getting rid of the reference to the empty pack file) but will not fix any branch that refer to it (nor restore its content which is lost for good :-/).
Fixing the branch itself can be achieved while keeping the changes in the working tree and committing again which will create a new pack file.
To get there:
- create a branch based on a valid revision,
- copy the 'last-revision' file in '.bzr/branch' from the good branch to the broken one
- 'bzr st' and 'bzr diff' should show you the uncommitted changes