bzr cbranch usage

Aaron Bentley aaron at aaronbentley.com
Tue Nov 24 22:55:10 GMT 2009


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

Xavier Maillard wrote:
> Now let's create a lightweight checkout bound to feature-baz:
> bzr cbranch --lightweight foo/trunk foo/feature-baz
> 
> result:
> 
> bzr: ERROR: Not a branch: "/home/xavier/src/foo/trunk".
> 
> So, the question is quite basic: what the heck am I doing wrong ?

You're specifying a path to a branch that does not exist.  The
cbranch_target has no effect on where cbranch looks for branches, only
on where it creates them.  So foo/trunk is expanded to
/home/xavier/src/foo/trunk, not /home/xavier/repos/foo/trunk.

> Do I have to create the lightweight checkout manually

No, you can type "bzr cbranch ~repos/foo/trunk foo/feature-baz".

> -i.e bzr co
> ~repos/foo/trun foo/trunk in ~/src before being able to do
> cbranch ?

You can do that, and I think it's a good way to work, but it's not
strictly necessary.

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

iEYEARECAAYFAksMZEsACgkQ0F+nu1YWqI0fwACeJ6tjnSb96hlzvXE+z0ZYFf/o
T5sAn2rEKicrcTzuXm15HDMOpd9ZDc5Y
=aCMI
-----END PGP SIGNATURE-----



More information about the bazaar mailing list