'NoneType' object has no attribute 'get_config' in filename_matches_config executing bzr switch

Bug #601798 reported by David Graf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

Hello

I am working with a bazaar sandbox setup. Today, when I switch the sandbox from one branch to another, I got an internal server error:

bzr: ERROR: exceptions.AttributeError: 'NoneType' object has no attribute 'get_config'

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    attaching the crash file
        /home/dagraf/.cache/crash/bzr-20100705080100-32471.crash
    and including a description of the problem.

    The crash file is plain text and you can inspect or edit it to remove
    private information.

OS: Ubuntu 10.04 64
Ubuntu Version: 2.1.1

I attached the crash file.

Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 853, in exception_to_return_code
     return the_callable(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1055, in run_bzr
     ret = run(*run_argv)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 661, in run_argv_aliases
     return self.run_direct(**all_cmd_args)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 665, in run_direct
     return self._operation.run_simple(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 122, in run_simple
     self.cleanups, self.func, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
     result = func(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 5519, in run
     switch.switch(control_dir, to_branch, force, revision_id=revision)
   File "/usr/lib/python2.6/dist-packages/bzrlib/switch.py", line 40, in switch
     _update(tree, source_repository, quiet, revision_id)
   File "/usr/lib/python2.6/dist-packages/bzrlib/switch.py", line 138, in _update
     merge.Merge3Merger(tree, tree, base_tree, to_branch.repository.revision_tree(revision_id))
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 755, in __init__
     self.do_merge()
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 766, in do_merge
     operation.run()
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 118, in run
     self.cleanups, self.func, self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
     result = func(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 772, in _do_merge
     self._compute_transform()
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 814, in _compute_transform
     file_status = self._do_merge_contents(file_id)
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 1302, in _do_merge_contents
     hook_status, lines = hook.merge_contents(params)
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 161, in merge_contents
     not self.filename_matches_config(params)):
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 133, in filename_matches_config
     config = self.merger.this_branch.get_config()
 AttributeError: 'NoneType' object has no attribute 'get_config'

Tags: merge
Revision history for this message
David Graf (davidagraf) wrote :
Martin Pool (mbp)
description: updated
summary: - Internal Server Error when executing bzr switch
+ 'NoneType' object has no attribute 'get_config' in
+ filename_matches_config executing bzr switch
Martin Pool (mbp)
tags: added: merge
Revision history for this message
Andrew Bennetts (spiv) wrote :

This puzzles me. It looks exactly like bug 599436 (which it has been marked a duplicated of), but that bug was fixed in bzr 2.1.1, which is the bzr version in the crash report.

If upgrading to 2.1.2 or a 2.2 beta fixes it for the reporter, then good. But perhaps there's something else going on here? So, David Graf: please try upgrading your bzr and if that doesn't fix this bug then let us know here (and unmark this bug as a duplicate).

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.