~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.py

  • Committer: Robert Collins
  • Date: 2007-08-24 02:15:47 UTC
  • mto: (2592.3.107 repository)
  • mto: This revision was merged to the branch mainline in revision 2746.
  • Revision ID: robertc@robertcollins.net-20070824021547-ov2abtu3buhgzsuz
Ensure mutter_callsite is not directly called on a lazy_load object, to make the stacklevel parameter work correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    revision as _mod_revision,
57
57
    revisiontree,
58
58
    textui,
 
59
    trace,
59
60
    transform,
60
61
    urlutils,
61
62
    xml5,
63
64
    )
64
65
import bzrlib.branch
65
66
from bzrlib.transport import get_transport
66
 
from bzrlib.trace import mutter_callsite
67
67
import bzrlib.ui
68
68
""")
69
69
 
434
434
    def _get_inventory(self):
435
435
        """Get the inventory for the tree. This is only valid within a lock."""
436
436
        if 'evil' in debug.debug_flags:
437
 
            mutter_callsite(2,
 
437
            trace.mutter_callsite(2,
438
438
                "accessing .inventory forces a size of tree translation.")
439
439
        if self._inventory is not None:
440
440
            return self._inventory