~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/weave_fmt/workingtree.py

  • Committer: Vincent Ladeuil
  • Date: 2012-02-14 17:22:37 UTC
  • mfrom: (6466 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6468.
  • Revision ID: v.ladeuil+lp@free.fr-20120214172237-7dv7er3n4uy8d5m4
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    xml5,
31
31
    )
32
32
from bzrlib.decorators import needs_read_lock
 
33
from bzrlib.mutabletree import MutableTree
33
34
from bzrlib.transport.local import LocalTransport
34
35
from bzrlib.workingtree import (
35
36
    WorkingTreeFormat,
104
105
                         _bzrdir=a_bzrdir,
105
106
                         _control_files=branch.control_files)
106
107
        basis_tree = branch.repository.revision_tree(revision_id)
107
 
        if basis_tree.inventory.root is not None:
 
108
        if basis_tree.get_root_id() is not None:
108
109
            wt.set_root_id(basis_tree.get_root_id())
109
110
        # set the parent list and cache the basis tree.
110
111
        if _mod_revision.is_null(revision_id):
113
114
            parent_trees = [(revision_id, basis_tree)]
114
115
        wt.set_parent_trees(parent_trees)
115
116
        transform.build_tree(basis_tree, wt)
 
117
        for hook in MutableTree.hooks['post_build_tree']:
 
118
            hook(wt)
116
119
        return wt
117
120
 
118
121
    def __init__(self):