Internal error when switching an anonymous svn checkout to an authenticated one

Bug #183636 reported by Ming Hua
2
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

I am not exactly sure if this is a bug in bzr or bzr-svn, but since none of the traceback mentions svn plugin related files, I'll report it against bzr.

This happend when trying to "bzr switch" from an svn+http:// checkout to an svn+https:// checkout. The system is Debian unstable, with bzr 1.1~rc1-1 and bzr-svn 0.4.6-1.

$ bzr switch svn+https://scim-python.googlecode.com/svn/trunk/
bzr: ERROR: exceptions.AttributeError: 'NoneType' object has no attribute 'base'

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 806, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 762, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 4381, in run
    switch.switch(control_dir, to_branch, force)
  File "/usr/lib/python2.4/site-packages/bzrlib/switch.py", line 37, in switch
    _set_branch_location(control_dir, to_branch, force)
  File "/usr/lib/python2.4/site-packages/bzrlib/switch.py", line 82, in _set_branch_location
    if not force and _any_local_commits(b, possible_transports):
  File "/usr/lib/python2.4/site-packages/bzrlib/switch.py", line 105, in _any_local_commits
    graph = this_branch.repository.get_graph(
  File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 1720, in get_graph
    if (other_repository is not None and
AttributeError: 'NoneType' object has no attribute 'base'

bzr 1.1.0.candidate.1 on python 2.4.4.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'switch', 'svn+https://scim-python.googlecode.com/svn/trunk/']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  launchpad /usr/lib/python2.4/site-packages/bzrlib/plugins/launchpad [unknown]
  multiparent /usr/lib/python2.4/site-packages/bzrlib/plugins/multiparent.pyc [unknown]
  rebase /usr/lib/python2.4/site-packages/bzrlib/plugins/rebase [0.3.0]
  svn /usr/lib/python2.4/site-packages/bzrlib/plugins/svn [0.4.6]
*** 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.

$ bzr info
Checkout (format: rich-root)
Location:
       checkout root: .
  checkout of branch: svn+http://scim-python.googlecode.com/svn/trunk

Related branches:
  parent branch: svn+http://scim-python.googlecode.com/svn/trunk

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.