[RFC] bzr convert

Aaron Bentley aaron.bentley at utoronto.ca
Tue Aug 14 23:32:20 BST 2007


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

Hi all,

- From time to time, we discover that directories don't contain the
desired object.  Either the wrong object was created, or the desire has
changed.  The standard suggestion of "delete it and re-create it" seems
a bit harsh.

Perhaps it would be nice to have a convert command:

Given a lightweight checkout, "bzr convert standalone-tree" would
1. create an unshared repository at the checkout root
2. create a branch, with the former BranchReference's location as its
parent.

Given a standalone tree, "bzr convert standalone-branch" would do
remove-tree.

Given a standalone tree, "bzr convert shared-repository" would make the
repository shared, but leave the tree and branch in place.

Given a standalone tree, "bzr convert repository-tree" would find a
containing shared repository, copy the contents of the tree's repository
into it, and remove the tree's repository.

Obviously, we'd want to do checks for potentially lossy operations like
converting a branch into a checkout, or removing a working tree with
uncommitted changes.

Thoughts?

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGwi1b0F+nu1YWqI0RAjOiAJ992ealrSn3kUE2rSuOTUYzoIlcUgCbBdem
/JnDpC6lrrBnkXD2/ogeoUs=
=61CU
-----END PGP SIGNATURE-----



More information about the bazaar mailing list