[MERGE] Create branch without working-tree

Aaron Bentley aaron at aaronbentley.com
Sat Apr 5 15:52:07 BST 2008


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

jk wrote:
> Feature:
> This adds a "--no-tree" option to the "bzr branch" command. When
> present, the working-tree will not be created when the branch is
> performed.

> Using this
> "--no-tree" option and a shared repository, a read-only local branch
> snapshot can be created in a couple of minutes or less.

But if you use create the repository by doing "init-repo --no-trees",
you don't need the --no-tree option.  (or you can change an existing
repository with "touch .bzr/repository/no-working-trees")

The feature itself is okay, but you'll need tests:
1. a test in bzrlib/bzrdir_implementations to ensure that all
implementations of sprout accept and respect the no_tree parameter

2. a test in bzrlib/blackbox/test_branch.py to ensure that "bzr branch"
accepts and respects a --no-tree option

bb:resubmit

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

iD8DBQFH95IX0F+nu1YWqI0RArT3AJ9gg8L4km+kx9ebhXdQQtUm6IX+cwCeKwFw
dzdzcZSVSdkrm3SDJS9eSPI=
=uC/3
-----END PGP SIGNATURE-----



More information about the bazaar mailing list