~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mutabletree.py

  • Committer: Jelmer Vernooij
  • Date: 2012-01-06 01:58:27 UTC
  • mto: (6437.3.7 2.5)
  • mto: This revision was merged to the branch mainline in revision 6441.
  • Revision ID: jelmer@samba.org-20120106015827-9xy0wl8fcf5fn1d5
Add hooks for tree transforms.

Show diffs side-by-side

added added

removed removed

Lines of Context:
522
522
            "the mutable_tree attribute of that object.", (2, 0))
523
523
        self.add_hook('pre_transform',
524
524
            "Called before a tree transform on this tree. The hook is called "
525
 
            "with the tree transform is being done.", (2, 5))
 
525
            "with the tree that is being transformed and the transform.",
 
526
            (2, 5))
526
527
        self.add_hook('post_transform',
527
528
            "Called after a tree transform has been performed on a tree. "
528
 
            "The hook is called with the tree transform that is being done.",
 
529
            "The hook is called with the tree that is being transformed and "
 
530
            "the transform.",
529
531
            (2, 5))
530
532
 
531
533