bzr push lp: crashes

Bug #196618 reported by Edward K. Ream
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Low
Dan Watkins

Bug Description

After doing bzr branch lp:leo-editor
I made a few changes. Wanted to do bzr push, but got:

C:\leo-editor>bzr push
bzr: ERROR: No push location known or specified.

C:\leo-editor>bzr info
Standalone tree (format: pack-0.92)
Location:
  branch root: .

Related branches:
  parent branch: http://bazaar.launchpad.net/%7Eleo-editor-team/leo-editor/trunk/

So, in typical newbie fashion, I do:

C:\leo-editor>bzr push lp:
bzr: ERROR: exceptions.AssertionError:

Traceback (most recent call last):
  File "bzrlib\commands.pyc", line 806, in run_bzr_catch_errors
  File "bzrlib\commands.pyc", line 762, in run_bzr
  File "bzrlib\commands.pyc", line 492, in run_argv_aliases
  File "bzrlib\builtins.pyc", line 726, in run
  File "bzrlib\bzrdir.pyc", line 688, in open_from_transport
  File "bzrlib\transport\__init__.pyc", line 1661, in do_catching_redirections
  File "bzrlib\bzrdir.pyc", line 665, in find_format
  File "bzrlib\bzrdir.pyc", line 1417, in find_format
  File "bzrlib\bzrdir.pyc", line 1427, in probe_transport
  File "bzrlib\plugins\launchpad\lp_indirect.pyc", line 137, in get
  File "bzrlib\plugins\launchpad\lp_indirect.pyc", line 130, in _request_redirect
  File "bzrlib\plugins\launchpad\lp_indirect.pyc", line 82, in _resolve
  File "bzrlib\plugins\launchpad\lp_registration.pyc", line 235, in __init__
AssertionError

bzr 1.1.0 on python 2.5.1.final.0 (win32)
arguments: ['bzr', 'push', 'lp:']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  launchpad C:\Program Files\Bazaar\lib\library.zip\bzrlib\plugins\launchpad [unknown]
  multiparent C:\Program Files\Bazaar\lib\library.zip\bzrlib\plugins\multiparent.pyc [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

After upgrading to bzr 1.2.0 (standalone) I get:

C:\leo-editor>bzr info
Standalone tree (format: pack-0.92)
Location:
  branch root: .

Related branches:
  parent branch: http://bazaar.launchpad.net/%7Eleo-editor-team/leo-editor/trunk/

C:\leo-editor>bzr push lp:
bzr: ERROR: exceptions.AssertionError:

Traceback (most recent call last):
  File "bzrlib\commands.pyc", line 834, in run_bzr_catch_errors
  File "bzrlib\commands.pyc", line 790, in run_bzr
  File "bzrlib\commands.pyc", line 492, in run_argv_aliases
  File "bzrlib\builtins.pyc", line 727, in run
  File "bzrlib\bzrdir.pyc", line 688, in open_from_transport
  File "bzrlib\transport\__init__.pyc", line 1662, in do_catching_redirections
  File "bzrlib\bzrdir.pyc", line 665, in find_format
  File "bzrlib\bzrdir.pyc", line 1417, in find_format
  File "bzrlib\bzrdir.pyc", line 1427, in probe_transport
  File "bzrlib\plugins\launchpad\lp_indirect.pyc", line 139, in get
  File "bzrlib\plugins\launchpad\lp_indirect.pyc", line 132, in _request_redirect
  File "bzrlib\plugins\launchpad\lp_indirect.pyc", line 84, in _resolve
  File "bzrlib\plugins\launchpad\lp_registration.pyc", line 260, in __init__
AssertionError

bzr 1.2.0 on python 2.5.1.final.0 (win32)
arguments: ['bzr', 'push', 'lp:']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  launchpad C:\Program Files\Bazaar\lib\library.zip\bzrlib\plugins\launchpad [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

C:\leo-editor>

Edward K. Ream
<email address hidden>

Tags: easy

Related branches

Revision history for this message
John A Meinel (jameinel) wrote :

Well the traceback is unfortunate, but I wouldn't really expect "bzr push lp:" to work. Since you aren't telling us *where* on Launchpad to push it. You would at least need:

bzr push lp:leo-editor

I'm guessing the AssertionError is an assert that there is a project name, which is obviously not true.

It *should* be turned into a real exception that gives a nice format.

Revision history for this message
Edward K. Ream (edreamleo) wrote : Re: [Bug 196618] Re: bzr push lp: crashes

On Thu, Feb 28, 2008 at 11:47 AM, John A Meinel <email address hidden>
wrote:

> Well the traceback is unfortunate, but I wouldn't really expect "bzr
> push lp:" to work. Since you aren't telling us *where* on Launchpad to
> push it. You would at least need:
>
> bzr push lp:leo-editor
>
> I'm guessing the AssertionError is an assert that there is a project
> name, which is obviously not true.

Thanks for this reply. Clearly, this is not a big deal :-) OTOH, asserting
anything about user input seems dubious...Especially when I'm the user.

Edward

James Westby (james-w)
Changed in bzr:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Dan Watkins (oddbloke) wrote :
Changed in bzr:
assignee: nobody → daniel-thewatkins
Dan Watkins (oddbloke)
Changed in bzr:
status: Triaged → Fix Committed
Changed in bzr:
milestone: none → 1.3
Revision history for this message
Dan Watkins (oddbloke) wrote :

Fixed in bzr.dev r3271.

Changed in bzr:
status: Fix Committed → Fix Released
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.