bzr diff URL doesn't work, but bzr diff /path/to/branch does

Bug #179972 reported by Scott James Remnant (Canonical)
4
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Undecided
Unassigned

Bug Description

Usability issue.

I have "trunk" in my working tree, and I'm given a URL of someone's changes.

I tried "bzr diff . URL" but that just told me that the Path(s) were not versioned (!!)

I had to checkout the URL in a path alongside, then bzr diff . ../OTHERBRANCH and that worked.

If a path to a branch works, so should a URL.

description: updated
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

Bazaar 1.1 has a greatly improved diff UI. The command you want is "bzr diff --new URL".

Vincent Ladeuil (vila)
Changed in bzr:
status: New → Fix Released
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Cannot find any evidence for this having been fixed?

It still fails with the current bzr version.

Changed in bzr:
status: Fix Released → Confirmed
Revision history for this message
John A Meinel (jameinel) wrote :

I'm pretty sure you want:
bzr diff --old . --new URL

Which does, indeed, work here. It seems to have been introduced in 1.1, but the open values only go back to 1.3, so I'm marking it there.

We *don't* support "bzr diff . URL" and we don't support "bzr diff branch1 branch2" anymore, because it became to confusing to get all of the DWIM behavior working.

Changed in bzr:
milestone: none → 1.3
status: Confirmed → Fix Released
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

But you *do* support bzr diff FILE

and if you support FILE you should support URL-TO-FILE, no?

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 179972] Re: bzr diff URL doesn't work, but bzr diff /path/to/branch does

>But you *do* support bzr diff FILE
>
>and if you support FILE you should support URL-TO-FILE, no?

bzr diff FILE does:
'bzr diff of FILE in the tree that FILE is in'

bzr diff URL-TO-FILE will work IFF the protocol is one that supports
working tree access (e.g. local paths only).

-Rob

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.