circular import repository -> revisiontree -> tree

Bug #63660 reported by Marien Zwart
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
High
Unassigned

Bug Description

python -c 'from bzrlib import repository' fails with:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 47, in <module>
    from bzrlib.revisiontree import RevisionTree
  File "/usr/lib/python2.5/site-packages/bzrlib/revisiontree.py", line 21, in <module>
    from bzrlib.tree import Tree
  File "/usr/lib/python2.5/site-packages/bzrlib/tree.py", line 214, in <module>
    from bzrlib.revisiontree import RevisionTree
ImportError: cannot import name RevisionTree

in both bzr 0.11 and bzr.dev.

Related branches

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

The associated branch starts to avoid the circular import by properly deprecating bzrlib.tree.RevisionTree() and updating all internal callers to use bzrlib.revisiontree.RevisionTree().

Changed in bzr:
importance: Undecided → High
status: Unconfirmed → In Progress
Revision history for this message
John A Meinel (jameinel) wrote :

This has been merged for bzr-0.12

Changed in bzr:
status: In Progress → Fix Released
Revision history for this message
John A Meinel (jameinel) wrote :

Sorry, I was thinking a different bug, not merged yet.

Changed in bzr:
status: Fix Released → Fix Committed
John A Meinel (jameinel)
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.