lp-propose does not understand packaging (source) branches

Bug #705666 reported by Barry Warsaw
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Launchpad itself
Triaged
High
Unassigned

Bug Description

% bzr init-repo mgltools-viewerframework
% bzr branch ubuntu:mgltools-viewerframework natty
% bzr branch natty bug-685476
% cd bug-685476
<hack>

% bzr lp-propose-merge
bzr: ERROR: lp:~barry/ubuntu/natty/mgltools-viewerframework/bug-685476 has no product.
% bzr lp-propose-merge ubuntu:mgltools-viewerframework
Looking up: mgltools-viewerframework as lp:ubuntu/mgltools-viewerframework
bzr: ERROR: bzr+ssh://bazaar.launchpad.net/%2Bbranch/ubuntu/mgltools-viewerframework/ is not registered on Launchpad
% bzr lp-propose-merge ubuntu:n/mgltools-viewerframework
Looking up: n/mgltools-viewerframework as lp:ubuntu/n
bzr: ERROR: Not a branch: "bzr+ssh://bazaar.launchpad.net/%2Bbranch/ubuntu/n/".
% bzr lp-propose-merge lp:ubuntu/natty/mgltools-viewerframework
bzr: ERROR: bzr+ssh://bazaar.launchpad.net/%2Bbranch/ubuntu/natty/mgltools-viewerframework/ is not registered on Launchpad

Tags: api launchpad udd
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

lp.branches.getByUrl() doesn't support some URLs.

>>> lp.branches.getByUrl(url="bzr+ssh://bazaar.launchpad.net/%2Bbranch/ubuntu/natty/mgltools-viewerframework")
>>> lp.branches.getByUrl(url="bzr+ssh://bazaar.launchpad.net/~branch/ubuntu/natty/mgltools-viewerframework")
>>> lp.branches.getByUrl(url="bzr+ssh://bazaar.launchpad.net/~ubuntu-branches/ubuntu/natty/mgltools-viewerframework")
>>> lp.branches.getByUrl(url="bzr+ssh://bazaar.launchpad.net/~ubuntu-branches/ubuntu/natty/mgltools-viewerframework/natty")
<branch at https://api.launchpad.net/1.0/~ubuntu-branches/ubuntu/natty/mgltools-viewerframework/natty>

affects: bzr → launchpad
Changed in launchpad:
importance: Undecided → Medium
status: New → Triaged
tags: added: api udd
Revision history for this message
Tim Penhey (thumper) wrote :

Seems to fail with the +branch for normal projects too.

>>> launchpad.branches.getByUrl(url="bzr+ssh://bazaar.launchpad.net/%2Bbranch/sloecode/")
>>> launchpad.branches.getByUrl(url="bzr+ssh://bazaar.launchpad.net/+branch/sloecode/")

lp:sloecode -> lp:~sloecode/sloecode/trunk

>>> launchpad.branches.getByUrl(url="bzr+ssh://bazaar.launchpad.net/~sloecode/sloecode/trunk")
<branch at https://api.launchpad.net/1.0/~sloecode/sloecode/trunk>

Changed in launchpad:
importance: Medium → High
Martin Pool (mbp)
tags: added: launchpad
Changed in bzr:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

$ bzr lp-propose ubuntu:sphinx
Most recent Ubuntu version: 1.1.2+dfsg-4ubuntu2
Packaging branch status: CURRENT
bzr: ERROR: bzr+ssh://bazaar.launchpad.net/+branch/ubuntu/sphinx/ is not registered on Launchpad

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

Related branches:
    push branch: bzr+ssh://bazaar.launchpad.net/~andrewsomething/sphinx/lp480913/
  parent branch: bzr+ssh://bazaar.launchpad.net/+branch/ubuntu/sphinx/

$ bzr info bzr+ssh://bazaar.launchpad.net/+branch/ubuntu/sphinx/
Most recent Ubuntu version: 1.1.2+dfsg-4ubuntu2
Packaging branch status: CURRENT
Repository branch (format: unnamed)
Location:
  shared repository: bzr+ssh://bazaar.launchpad.net/+branch/ubuntu/sphinx/
  repository branch: bzr+ssh://bazaar.launchpad.net/+branch/ubuntu/sphinx/

$ bzr lp-propose lp:ubuntu/sphinx
Most recent Ubuntu version: 1.1.2+dfsg-4ubuntu2
Packaging branch status: CURRENT
bzr: ERROR: bzr+ssh://bazaar.launchpad.net/+branch/ubuntu/sphinx/ is not registered on Launchpad

$ bzr info lp:ubuntu/sphinx
Most recent Ubuntu version: 1.1.2+dfsg-4ubuntu2
Packaging branch status: CURRENT
Repository branch (format: unnamed)
Location:
  shared repository: bzr+ssh://bazaar.launchpad.net/+branch/ubuntu/sphinx/
  repository branch: bzr+ssh://bazaar.launchpad.net/+branch/ubuntu/sphinx/

$ bzr version
Bazaar (bzr) 2.5.0
  Python interpreter: /usr/bin/python 2.7.3rc1
  Python standard library: /usr/lib/python2.7
  Platform: Linux-3.2.0-18-generic-pae-i686-athlon-with-Ubuntu-12.04-precise
  bzrlib: /usr/lib/python2.7/dist-packages/bzrlib
  Bazaar configuration: /home/andrew/.bazaar
  Bazaar log file: /home/andrew/.bzr.log

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: 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.