[RFC] init-repo take --tree option

Aaron Bentley aaron.bentley at utoronto.ca
Mon Mar 27 19:55:04 BST 2006


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

Erik Bågfors wrote:
> I propose the following..
> 
> Can be merged from http://erik.bagfors.nu/bzr/bzr.init-repo-tree

I think that it's reasonable to make this optional, though I've got
stuff in bzrtools that I think is a far better alternative to doing
this.  I'll post about that soon.

> +                     Option('tree',
> +                             help='Allows branches in repository to have'
> +                             ' a working tree')]

I think using "tree" (singular) isn't intuitive.  I'd prefer
"--with-trees", but I'd go along with "--trees".

> +        cdir = bzrlib.bzrdir.BzrDir.open('a/c')
> +        cdir.open_branch()
> +        self.assertRaises(errors.NoRepositoryPresent, cdir.open_repository)
> +        self.assert_(os.path.exists('a/c/hello'))

I think this should include:
           cdir.open_workingtree()

+1 if those are addressed.  (i.e. by changing or by convincing me I'm wrong)

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

iD8DBQFEKDUI0F+nu1YWqI0RApMbAJwNYHVw8rOqTDk5zhE67yM6mXPmdwCfeac9
reHsgSrUygV/GtERgWX6Cw4=
=fLcI
-----END PGP SIGNATURE-----




More information about the bazaar mailing list