lp-propose fails if the target branch has an inaccessible parent branch

Bug #1078205 reported by Didier Roche-Tolomelli
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bzr (Ubuntu)

Bug Description

when trying: bzr lp-propose lp:bamf -m "foo":
bzr: ERROR: bzrlib.errors.InaccessibleParent: Parent not accessible given base "bzr+ssh://bazaar.launchpad.net/+branch/bamf/" and relative path "../../../~anjali-team/anjali/bamf/"

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1141, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/cmds.py", line 328, in run
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/lp_propose.py", line 83, in __init__
    self.launchpad, target_branch)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/lp_api.py", line 222, in from_bzr
    for url in cls.candidate_urls(bzr_branch):
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/lp_api.py", line 202, in candidate_urls
    url = bzr_branch.get_parent()
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 1125, in get_parent
    raise errors.InaccessibleParent(parent, self.user_url)
InaccessibleParent: Parent not accessible given base "bzr+ssh://bazaar.launchpad.net/+branch/bamf/" and relative path "../../../~anjali-team/anjali/bamf/"

This is because the anjali-team bamf branch is not used anymore and removed (the current lp:bamf is under ~unity-team and the one used for now).

When looking at potential parent branch, we should be catching it and just skipping that one.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: bzr 2.6.0~beta2-0ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-18.29-generic 3.5.7
Uname: Linux 3.5.0-18-generic x86_64
ApportVersion: 2.6.2-0ubuntu3
Architecture: amd64
Date: Tue Nov 13 09:29:59 2012
EcryptfsInUse: Yes
InstallationDate: Installed on 2012-05-28 (168 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
MarkForUpload: True
PackageArchitecture: all
 PATH=(custom, no user)
SourcePackage: bzr
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :
John A Meinel (jameinel)
Changed in bzr:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Benjamin Kerensa (bkerensa) wrote :

Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here. Thanks for taking the time to make Ubuntu better!

Changed in bzr (Ubuntu):
status: New → Confirmed
Changed in bzr (Ubuntu):
importance: Undecided → Low
Revision history for this message
Robert Bruce Park (robru) wrote :

Wow, 2+ years and this is still happening.

bzr: ERROR: Parent not accessible given base "bzr+ssh://bazaar.launchpad.net/+branch/cupstream2distro/" and relative path "../../../+branch/cupstream2distro/"

What's the workaround? Change the team ownership of the branch?

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.