NotBranchError could explain more about why a path is not a branch

Bug #86420 reported by Andrew Bennetts
4
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned
Breezy
Triaged
Low
Unassigned

Bug Description

There are multiple ways a location can be not a branch, such as:

   * no .bzr directory
   * .bzr directory present, but no .bzr/branch directory

Possibly other ways as well. I have observed both of these as common problems on the sftp://bazaar.launchpad.net/ branch hosting service.

It would be helpful if Bazaar explained exactly why it does not consider a location to be a branch, because that both explains to the user what's going on (and where to look next to diagnose further), and also because it makes suggesting a likely remedy easier.

In particular, it would help bug #86402 by improving user feedback and making it easy for the system to suggest an appropriate remedy to the user.

For the case where there is a .bzr directory, but no branch in it, perhaps the error text ought to suggest the user try "bzr info" to understand what it is that directory contains instead.

Revision history for this message
Bubba Siggler (bud3) wrote :

Here is my bzr info. I have looked at it for some time, don't see what is missing. I will attach it. It is going to take some time to get it clear

Revision history for this message
Vincent Ladeuil (vila) wrote :

> cherokee@cherokee-desktop:~$ bzr info</p>
> bzr: WARNING: bzrlib version doesn't match the bzr program.</p>
> This may indicate an installation problem.</bzrlib from ['/usr/lib/python2.4/site-packages/bzrlib'] is version (0, 14, 0, 'final', 0)</p>

This *surely* indicates an installation problem, most probably you have updated your PATH to include a personal installation of bzr but forget to update your PYTHONPATH to point to the right bzrlib.

By the way, I'm not sure your comment relates to this particular bug...

Revision history for this message
Bubba Siggler (bud3) wrote : Re: [Bug 86420] Re: NotBranchError could explain more about why a path is not a branch

Hi vlla,
Thank's for taking the time to look at my problems. I was just minutes from
a format.
I checked the mail an vlla!! I did not no really what to put. I just ran
bzrlib and it's got even worse.
When I typed bzr status in the cwd. line it was showing every thing under
the Home folder.
Well do you think format is the best thing. It might not be the best but
quickest.

Bubba

On 2/20/07, vila <email address hidden> wrote:
>
> > cherokee@cherokee-desktop:~$ bzr info</p>
> > bzr: WARNING: bzrlib version doesn't match the bzr program.</p>
> > This may indicate an installation problem.</bzrlib from
> ['/usr/lib/python2.4/site-packages/bzrlib'] is version (0, 14, 0, 'final',
> 0)</p>
>
> This *surely* indicates an installation problem, most probably you have
> updated your PATH to include a personal installation of bzr but forget
> to update your PYTHONPATH to point to the right bzrlib.
>
> By the way, I'm not sure your comment relates to this particular bug...
>
> --
> NotBranchError could explain more about why a path is not a branch
> https://launchpad.net/bugs/86420
>

--
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFFkcN7yXWcajQQndYRAgbqAKCMyXN9Jx4g0X7jocg+aUSFz0x4LwCgrURW
eGtqLjpzQVYa9+gzpCRtB84=
=zrpM
-----END PGP SIGNATURE-----

Dan Watkins (oddbloke)
Changed in bzr:
importance: Undecided → Low
status: New → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: added: error-reporting
removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.