~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.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:
74
74
lazy_import(globals(), """
75
75
from bzrlib import (
76
76
    pack,
 
77
    trace,
77
78
    )
78
 
from bzrlib.trace import mutter_callsite
79
79
""")
80
80
from bzrlib import (
81
81
    cache_utf8,
634
634
    def versions(self):
635
635
        """See VersionedFile.versions."""
636
636
        if 'evil' in debug.debug_flags:
637
 
            mutter_callsite(2, "versions scales with size of history")
 
637
            trace.mutter_callsite(2, "versions scales with size of history")
638
638
        return self._index.get_versions()
639
639
 
640
640
    def has_version(self, version_id):
641
641
        """See VersionedFile.has_version."""
642
642
        if 'evil' in debug.debug_flags:
643
 
            mutter_callsite(2, "has_version is a LBYL scenario")
 
643
            trace.mutter_callsite(2, "has_version is a LBYL scenario")
644
644
        version_id = osutils.safe_revision_id(version_id)
645
645
        return self._index.has_version(version_id)
646
646