~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.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:
57
57
from bzrlib.lock import LogicalLockResult
58
58
from bzrlib.lockable_files import LockableFiles
59
59
from bzrlib.lockdir import LockDir
60
 
from bzrlib.mutabletree import needs_tree_write_lock
 
60
from bzrlib.mutabletree import (
 
61
    MutableTree,
 
62
    needs_tree_write_lock,
 
63
    )
61
64
from bzrlib.osutils import (
62
65
    file_kind,
63
66
    isdir,
1544
1547
                transform.build_tree(basis, wt, accelerator_tree,
1545
1548
                                     hardlink=hardlink,
1546
1549
                                     delta_from_tree=delta_from_tree)
 
1550
                for hook in MutableTree.hooks['post_build_tree']:
 
1551
                    hook(wt)
1547
1552
            finally:
1548
1553
                basis.unlock()
1549
1554
        finally: