Rev 2740: More evil mutterings. in http://people.ubuntu.com/~robertc/baz2.0/repository
Robert Collins
robertc at robertcollins.net
Sat Aug 25 02:26:31 BST 2007
At http://people.ubuntu.com/~robertc/baz2.0/repository
------------------------------------------------------------
revno: 2740
revision-id: robertc at robertcollins.net-20070825012039-m8oajomk0ej8r5q5
parent: robertc at robertcollins.net-20070825000548-p2hpz1zr7nsmz2vq
committer: Robert Collins <robertc at robertcollins.net>
branch nick: repository
timestamp: Sat 2007-08-25 11:20:39 +1000
message:
More evil mutterings.
modified:
bzrlib/repository.py rev_storage.py-20051111201905-119e9401e46257e3
=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py 2007-08-24 22:36:01 +0000
+++ b/bzrlib/repository.py 2007-08-25 01:20:39 +0000
@@ -176,6 +176,8 @@
@needs_read_lock
def _all_possible_ids(self):
"""Return all the possible revisions that we could find."""
+ if 'evil' in debug.debug_flags:
+ mutter_callsite(3, "_all_possible_ids scales with size of history.")
return self.get_inventory_weave().versions()
def all_revision_ids(self):
@@ -185,6 +187,8 @@
reachable from a particular revision, and ignore any other revisions
that might be present. There is no direct replacement method.
"""
+ if 'evil' in debug.debug_flags:
+ mutter_callsite(2, "all_revision_ids scales with size of history.")
return self._all_revision_ids()
@needs_read_lock
More information about the bazaar-commits
mailing list