converting standalone branches to shared ones...
Robert Collins
robertc at robertcollins.net
Mon Feb 20 00:01:10 GMT 2006
Say you have a standalone branch underneath a repository, and you want
to make it use the repository for storage...
The following will do it:
$ bzr upgrade --format=metadir
$ python
>>> import bzrlib.repository
>>> this_repo = bzrlib.repository.Repository.open('.')
>>> shared_repo = bzrlilb.repository.Repository.open_containing('..')
>>> assert shared_repo.is_shared()
>>> shared_repo.fetch(this_repo)
>>> this_repo.bzrdir.get_repository_transport.delete_tree('.')
>>> ^D
I'd like to make this available from the console ui... any suggestions
where?
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060220/0b4f6559/attachment.pgp
More information about the bazaar
mailing list