Private/nonexistent branches produce confusing errors

Bug #1484282 reported by Ryan Finnie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mojo: Continuous Delivery for Juju
Confirmed
Low
Unassigned

Bug Description

When trying to run against a branch which is private and not accessible (or nonexistent), the following is returned:

2015-08-11 21:58:12 [ERROR] Unknown error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mojo/cli.py", line 668, in run_with_args
    args.func(args)
  File "/usr/lib/python2.7/dist-packages/mojo/cli.py", line 407, in run_from_manifest
    logfile=logfile)
  File "/usr/lib/python2.7/dist-packages/mojo/__init__.py", line 609, in create_workspace
    spec.initialize(clean_spec)
  File "/usr/lib/python2.7/dist-packages/mojo/__init__.py", line 82, in initialize
    self.local_branch.revert()
AttributeError: 'NoneType' object has no attribute 'revert'

This is what happens when I try to branch directly using bzrlib, which better hints at the problem:

bzrlib.errors.NotBranchError: Not a branch: "bzr+ssh://bazaar.launchpad.net/~a/b/c/".

Tags: papercut
Tom Haddon (mthaddon)
Changed in mojo:
status: New → Confirmed
importance: Undecided → Low
tags: added: papercut
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.