"ec2 land" doesn't work when given just a branch url

Bug #810028 reported by Bryce Harrington
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad Developer Utilities
Triaged
Low
Unassigned

Bug Description

According to https://dev.launchpad.net/LandingChanges, this syntax should work:

  ./utilities/ec2 land lp:~bryce/launchpad/bugtracker-refactor

however when doing this, I get:

Traceback (most recent call last):
  File "./utilities/ec2", line 26, in <module>
    devscripts.ec2test.entrypoint.main()
  File "/home/bryce/launchpad/lp-branches/bugtracker-refactor/lib/devscripts/ec2test/entrypoint.py", line 45, in main
    controller.run(args)
  File "/home/bryce/launchpad/lp-branches/bugtracker-refactor/lib/devscripts/ec2test/controller.py", line 145, in run
    run_bzr(argv)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/bzr-2.3.3-py2.6-linux-i686.egg/bzrlib/commands.py", line 1126, in run_bzr
    ret = run(*run_argv)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/bzr-2.3.3-py2.6-linux-i686.egg/bzrlib/commands.py", line 691, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/bzr-2.3.3-py2.6-linux-i686.egg/bzrlib/commands.py", line 713, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/bzr-2.3.3-py2.6-linux-i686.egg/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/bzr-2.3.3-py2.6-linux-i686.egg/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/bryce/launchpad/lp-branches/bugtracker-refactor/lib/devscripts/ec2test/builtins.py", line 414, in run
    if not mp.is_approved:
  File "/home/bryce/launchpad/lp-branches/bugtracker-refactor/lib/devscripts/autoland.py", line 115, in is_approved
    return self._mp.queue_status == 'Approved'
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/lazr.restfulclient-0.11.2-py2.6.egg/lazr/restfulclient/resource.py", line 688, in __getattr__
    return super(Entry, self).__getattr__(name)
  File "/home/bryce/launchpad/lp-sourcedeps/eggs/lazr.restfulclient-0.11.2-py2.6.egg/lazr/restfulclient/resource.py", line 334, in __getattr__
    % (self.__class__.__name__, attr))
AttributeError: 'Entry' object has no attribute 'queue_status'

Revision history for this message
Benji York (benji) wrote :

I assume giving the non-shortened version works. Correct?

Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Bryce Harrington (bryce) wrote :

Right, running it with no args, or with a full merge proposal url does not result in the backtrace.

Revision history for this message
Martin Pool (mbp) wrote :

The crazy backtrace is fixed in bug 789369. However, there is still a bug here that you cannot just give it a branch url.

summary: - ec2 land with branch triggers backtrace
+ "ec2 land" doesn't work when given just a branch url
Aaron Bentley (abentley)
affects: launchpad → lp-dev-utils
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.