improve error message for incorrect remote diff syntax

Bug #49501 reported by Steve Alexander
2
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned

Bug Description

When I try to diff against a remote branch with

  bzr diff sftp://....

I get a bunch of misleading errors, depending on whether the location has a working tree or not. The error message I want to receive is "there is no such local file as sftp://..." That would clue me into needing to use a different syntax.

Revision history for this message
John A Meinel (jameinel) wrote :

Confirmed. If the remote location has a working tree you get:
liliana % bzr diff sftp://juju/~/dev/bzr/jam-integration
bzr: ERROR: sftp://juju/~/dev/bzr/jam-integration/.bzr/ is not a local path.

If it does not have a working tree you get
liliana % bzr diff sftp://juju/srv/bzr/public/branches/bzr/jam-integration
bzr: ERROR: No WorkingTree exists for sftp://juju/srv/bzr/public/branches/bzr/jam-integration/.bzr/checkout/.

We should clean up this sort of error handling. Though this is also part of us needing to clean up diff, which has become a very convoluted DWIM command, and really needs to be restructured to handle the different cases in a clean fashion. (It should be possible to diff against a remote branch, for example)

Changed in bzr:
importance: Undecided → Wishlist
status: Unconfirmed → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.