~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/index.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-08-24 03:16:12 UTC
  • mfrom: (2745.1.2 devil)
  • Revision ID: pqm@pqm.ubuntu.com-20070824031612-53wd9sywqa4zima5
(robertc) Add a number of -Devil checks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
from bzrlib.lazy_import import lazy_import
31
31
lazy_import(globals(), """
 
32
from bzrlib import trace
32
33
from bzrlib.trace import mutter
33
34
""")
34
35
from bzrlib import debug, errors
322
323
            There is no defined order for the result iteration - it will be in
323
324
            the most efficient order for the index.
324
325
        """
 
326
        if 'evil' in debug.debug_flags:
 
327
            trace.mutter_callsite(2,
 
328
                "iter_all_entries scales with size of history.")
325
329
        if self._nodes is None:
326
330
            self._buffer_all()
327
331
        if self.node_ref_lists:
610
614
            defined order for the result iteration - it will be in the most
611
615
            efficient order for the index (in this case dictionary hash order).
612
616
        """
 
617
        if 'evil' in debug.debug_flags:
 
618
            trace.mutter_callsite(2,
 
619
                "iter_all_entries scales with size of history.")
613
620
        if self.reference_lists:
614
621
            for key, (absent, references, value) in self._nodes.iteritems():
615
622
                if not absent: