Aaaye! Deleted shared repository .bzr directory, any options?

Robert Collins robert.collins at canonical.com
Wed Apr 29 01:11:29 BST 2009


On Tue, 2009-04-28 at 15:44 -0400, Michael B. Trausch wrote:
> Hello,
> 
> I accidentally deleted a .bzr directory (the wrong one, I had intended
> to do it one level up, which I unintentionally made into a branch, but
> that is beside the point) that contained the data for a shared
> repository.
> 
> I haven't figured out a way to undo that (am using ext4 and cannot
> undelete) just yet, and am wondering if there is any options that exist
> to make my branches that were in that shared repository work again since
> now they're all broken.  Did I lose all the history, or did I only make
> life relatively inconvenient for a little bit?  If the latter, how can
> I repair my branches so that they work again?

You've deleted the history database :(.

To start, make a new shared repo where you deleted the old one.
Then, for every branch you had pushed somewhere, branch the
public/external copy into a temporary local branch in the shared repo.
This will bring back in at least some of the data you have expurgated.

Once you've done that, many of your branches will be ok again. There
isn't a lot that can be done for the branches you hadn't pushed the tip
of though - you'll need to undelete the shared repo to get them back.

Oh, and I'd look into do that *before* you do a lot of disk activity on
your ext4 partition.

-Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090429/8cb2bc0f/attachment.pgp 


More information about the bazaar mailing list