Tracking Third-Party Sources (Vendor Branches)?

Matthieu Moy Matthieu.Moy at imag.fr
Thu May 18 23:47:20 BST 2006


Bob Tanner <tanner at real-time.com> writes:

> John Arbash Meinel wrote:
>
>> $ bzr init-repo samhain # no --trees flag
>> $ cd samhain
>> $ bzr get http://other/place/samhain-2.0.10a/ 2.0.10a
>
> Replaced the above with
>
> $ tar xvzf samhain-x.y.z.tar.gz
> $ cd samhain
> $ bzr init
> $ bzr add debian
> bzr: ERROR: No WorkingTree exists
> for /path/to/samhain/2.0.10a/.bzr/checkout/.

You've got a branch without a working tree (because you haven't used
--trees for init-repo). Therefore, you have to use "bzr checkout" to
get one.

Note: does it make sense to have "bzr init" create a branch without a
working tree even in a tree-less repository? Well, you can "bzr init"
just because you want to "bzr pull" after, but then "bzr branch" does
it in one command. I think it should at least give a warning, it's
really confusing.

Note2: This "No WorkingTree exists" error message should definitely be
improved. First of all, it should be "working tree", not the class
name which is meaningless for a user. Then, it should say "run bzr
checkout to get a tree" when appropriate. (I believe it used to say
that, but it has been removed because of a context in which it wasn't
appropriate, but I don't remember which one).

-- 
Matthieu




More information about the bazaar mailing list