bzr http URL stores evaluated URL instead of the link

Bug #1166854 reported by Данило Шеган
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
New
Undecided
Unassigned

Bug Description

We've recently hit a problem where 'bzr pull' did not update to the latest trunk of lp:goyaml.

After a bit of investigation, it seems that http://launchpad.net/goyaml, which 'go get' seems to do a 'bzr pull'/'bzr branch' off, does a permanent redirect (for bzr client, at least) to an evaluated bzr branch path, thus the branch will end up with a parent pointing to something like the following

$ bzr info
Standalone tree (format: 2a)
Location:
  branch root: .

Related branches:
  parent branch: http://bazaar.launchpad.net/~goyaml/goyaml/trunk/
  submit branch: .

However, if the 'main branch' is changed to point to a different branch (or, eg. if the branch owner is changed), this URL will be out of date. This is exactly the problem we hit: people had outdated branches since trunk has moved and 'bzr pull' simply reported no new revisions.

Neither does it work correctly with URLs like https://code.launchpad.net/+branch/goyaml:

$ bzr pull --remember https://code.launchpad.net/+branch/goyaml
https://code.launchpad.net/%2Bbranch/goyaml is permanently redirected to https://code.launchpad.net/~goyaml/goyaml/trunk
https://code.launchpad.net/+branch/goyaml/ is permanently redirected to https://code.launchpad.net/~goyaml/goyaml/trunk/

But, it works correctly with lp:goyaml URL when appropriate bzr+ssh://bazaar.launchpad.net/+branch/goyaml URL is used (though this requires one to be logged into Launchpad; I suspect similar problems will happen if it falls back to http for unauthenticated users, but I haven't tested it):

$ bzr pull --remember lp:goyaml
No revisions or tags to pull.
$ bzr info
Standalone tree (format: 2a)
Location:
  branch root: .

Related branches:
  parent branch: bzr+ssh://bazaar.launchpad.net/+branch/goyaml/
  submit branch: .

To clarify, I am not certain this is a LP bug. I am just hoping LP could not be giving out permanent redirects (but temporary ones) and bzr would then respect that and store the shorter URL it started off with.

description: updated
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 1166854] Re: bzr http URL stores evaluated URL instead of the link

I believe this is a dupe of a much older bug.

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.