[PATCH] more informative error for bzr add (when parent is unversioned)

Michael Ellerman michael at ellerman.id.au
Sun Sep 18 23:24:30 BST 2005


On Sat, 17 Sep 2005 19:31, Robert Collins wrote:
> On Sat, 2005-09-17 at 14:08 +1000, Michael Ellerman wrote:
> > On Fri, 16 Sep 2005 22:32, Robert Collins wrote:
> > > I do wonder what happens if you cd to / and bzr add usr/bin though.
> >
> > concordia ~$ cd /
> > concordia /$ bzr add usr/bin
> > bzr: ERROR: /usr/bin is not in a branch
> >   at /home/michael/src/bzr/mine/bzrlib/branch.py line 131, in
> > find_branch_root()
> >   see ~/.bzr.log for debug information
> >
> > But that's not quite you meant is it? :D
>
> Actually, its *exactly* what I meant :). Its an add of a file or dir in
> an unversioned parent :). And it gets a sucky error message.

Not really, that error's coming from the fact that / isn't versioned - I don't 
think there's anything my patch can do about that.

cheers

-- 
Michael Ellerman
IBM OzLabs

email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050919/2ba8034b/attachment.pgp 


More information about the bazaar mailing list