~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_3.py

  • Committer: Jelmer Vernooij
  • Date: 2012-01-06 14:09:04 UTC
  • mto: This revision was merged to the branch mainline in revision 6436.
  • Revision ID: jelmer@samba.org-20120106140904-yim0qjm8xvivuuj8
Add post_build_tree hook.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    )
37
37
from bzrlib.lockable_files import LockableFiles
38
38
from bzrlib.lockdir import LockDir
 
39
from bzrlib.mutabletree import MutableTree
39
40
from bzrlib.transport.local import LocalTransport
40
41
from bzrlib.workingtree import (
41
42
    InventoryWorkingTree,
227
228
            else:
228
229
                wt.set_parent_trees([(revision_id, basis_tree)])
229
230
            transform.build_tree(basis_tree, wt)
 
231
            for hook in MutableTree.hooks['post_build_tree']:
 
232
                hook(wt)
230
233
        finally:
231
234
            # Unlock in this order so that the unlock-triggers-flush in
232
235
            # WorkingTree is given a chance to fire.