/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/knit.py

Merge bzr.dev

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
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
            trace.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
            trace.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