When trying to interact with a newer format, tell the user about upgrading instead of erroring

Bug #447207 reported by Martin Albisetti
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned
Breezy
Triaged
Medium
Unassigned

Bug Description

There are many cases where you can try to interact with a newer, supported format. In those cases, we error out with something like:

bzr: ERROR: KnitPackRepository('file:///home/projects/.bzr/repository/')
is not compatible with
KnitPackRepository('file:///home/development/trunk/.bzr/repository/')
different rich-root support

Not very helpful.
Instead of that error, we should tell the user something like:
"The branch you're trying to access is using a newer bzr format. To work with it, you should upgrade your repository by using 'bzr upgrade'."

Revision history for this message
Jared Hance (mathepic) wrote :

How would it know that its a newer format?

It wouldn't have information on that format. It could either be a normal format or just a corrupted repository.

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 447207] Re: When trying to interact with a newer format, tell the user about upgrading instead of erroring

On Fri, 2009-10-09 at 23:58 +0000, Jared Hance wrote:
> How would it know that its a newer format?
>
> It wouldn't have information on that format. It could either be a normal
> format or just a corrupted repository.

The example Martin gave indicates thats bzr knows both formats. We have
a different error on unknown formats - we show the format string, which
includes a human readable hint.

-Rob

Changed in bzr:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
David Wagner (daw-bugzilla) wrote :

Did this ever get addressed? I just ran into this situation today, and found it quite confusing to get this error message out of the blue. I agree with the original poster that his suggested error message would have been a lot more helpful. The existing error message is inscrutable (it might as well have said "error: the wizzgriff arglebarfed the gizmadget, sucks to be you") and also failed to provide me with any information about what I should do to correct the situation.

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 447207] Re: When trying to interact with a newer format, tell the user about upgrading instead of erroring

This is not fixed yet.

Jelmer Vernooij (jelmer)
tags: added: formats formatui
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: added: confusing-ui
removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Medium
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.