Recover a repository accidentally converted to a branch

John Arbash Meinel john at arbash-meinel.com
Thu Jul 29 21:40:49 BST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Adam Glauser wrote:
> I did not read the help for `bzr reconfigure --use-shared` closely
> enough, and ran it as `bzr reconfigure --use-shared <path to
> repository>` from a lightweight checkout.  The idea was to try to
> convert the lightweight checkout to a heavyweight checkout without
> having to download the whole history which was mostly in the local
> repository already.
> 
> Instead, I now have a hosed up .bzr directory at <path to repository>.
> <path to repository>/.bzr has an empty branch-lock directory, and a
> branch-format file with the contents "Bazaar-NG meta directory, format 1".
> 
> Is there a way to recover the repository?
> 
> 
> 

I would assume you have a repository outside of that repo, or it
wouldn't have another shared repo to use. So all that history is now
stored higher up the directory structure. If you just move the .bzr
directory, then I think any branches under that repo will the containing
repo and continue to work.

I don't have any quick shortcuts for how to recreate the original
subdirectory repository, though if you created a new repo as a neighbor,
and then branch the old branches into the new location, and then rename
that back to the original place, I think that should work.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxR51EACgkQJdeBCYSNAANtVACgzZKzEzczoONmwzB5ssaKUqiX
GmEAnj81e9zXajNrADZSZxRblzw3aCZr
=9HRu
-----END PGP SIGNATURE-----



More information about the bazaar mailing list