~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: Robert Collins
  • Date: 2007-08-23 21:36:56 UTC
  • mto: (2592.3.105 repository)
  • mto: This revision was merged to the branch mainline in revision 2746.
  • Revision ID: robertc@robertcollins.net-20070823213656-055xdmkyesohby3u
Add a number of -Devil checkpoints.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
from bzrlib import (
76
76
    pack,
77
77
    )
 
78
from bzrlib.trace import mutter_callsite
78
79
""")
79
80
from bzrlib import (
80
81
    cache_utf8,
 
82
    debug,
81
83
    diff,
82
84
    errors,
83
85
    osutils,
631
633
 
632
634
    def versions(self):
633
635
        """See VersionedFile.versions."""
 
636
        if 'evil' in debug.debug_flags:
 
637
            mutter_callsite(2, "versions scales with size of history")
634
638
        return self._index.get_versions()
635
639
 
636
640
    def has_version(self, version_id):
637
641
        """See VersionedFile.has_version."""
 
642
        if 'evil' in debug.debug_flags:
 
643
            mutter_callsite(2, "has_version is a LBYL scenario")
638
644
        version_id = osutils.safe_revision_id(version_id)
639
645
        return self._index.has_version(version_id)
640
646