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

Robert Collins robertc at robertcollins.net
Mon Sep 19 02:21:37 BST 2005


On Mon, 2005-09-19 at 08:24 +1000, Michael Ellerman wrote:
> 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.

True. It is however a related bug, UI wise :0..

Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050919/5bd7cdcb/attachment.pgp 


More information about the bazaar mailing list