~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.py

  • Committer: Patch Queue Manager
  • Date: 2012-01-06 20:14:36 UTC
  • mfrom: (6435.1.2 post-tree-build-hook)
  • Revision ID: pqm@pqm.ubuntu.com-20120106201436-ko6esavn69wt1lwt
(jelmer) Add post_build_tree hook to MutableTree. (Jelmer Vernooij)

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: