[merge][rfc] branch --stacked should set up to use a stackable format
Martin Pool
mbp at canonical.com
Thu Jul 24 15:29:00 BST 2008
In bzr.dev at the moment if you try to branch from a non-stackable
branch or repository format (ie almost any existing branch) you get an
error that stacking is not supported. This is because by default we
preserve the format when branching.
If you give --stacked it would make sense for bzr to create a
repository and branch which can support branching.
This patch does that, though not in a totally satisfactory way.
* adds BranchFormat.supports_stacking so we can find out about it
without needing to have a particular branch in mind
* BzrDir.sprout forces a particular branch format if necessary
* RepositoryPolicy similarly
Hardcoding the particular formats we want to use is not great, but
what bothers me more is getting the right place to put this policy in.
Maybe it should be in the RepositoryPolicy objects.
--
Martin <http://launchpad.net/~mbp/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20080725-branch-stacked-sets-format.diff
Type: text/x-diff
Size: 7024 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080725/a2938ea3/attachment.bin
More information about the bazaar
mailing list