/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_3.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:
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.