Rev 3895: Remove an isinstance(..., tuple) assertion. in http://bazaar.launchpad.net/%7Ebzr/bzr/brisbane-core
John Arbash Meinel
john at arbash-meinel.com
Fri Mar 20 15:53:45 GMT 2009
At http://bazaar.launchpad.net/%7Ebzr/bzr/brisbane-core
------------------------------------------------------------
revno: 3895
revision-id: john at arbash-meinel.com-20090320155300-2qdojs8r4loamvmw
parent: john at arbash-meinel.com-20090320154310-q5ye037radsy052j
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: brisbane-core
timestamp: Fri 2009-03-20 10:53:00 -0500
message:
Remove an isinstance(..., tuple) assertion.
According to lsprof it was actually a bit expensive, and didn't help much anyway.
-------------- next part --------------
=== modified file 'bzrlib/repofmt/groupcompress_repo.py'
--- a/bzrlib/repofmt/groupcompress_repo.py 2009-03-19 20:31:57 +0000
+++ b/bzrlib/repofmt/groupcompress_repo.py 2009-03-20 15:53:00 +0000
@@ -254,9 +254,6 @@
next_keys = set()
def handle_internal_node(node):
for prefix, value in node._items.iteritems():
- if not isinstance(value, tuple):
- raise AssertionError("value is %s when a tuple"
- " is expected" % (value.__class__))
# We don't want to request the same key twice, and we
# want to order it by the first time it is seen.
# Even further, we don't want to request a key which is
@@ -290,13 +287,6 @@
handle_internal_node(node)
elif parse_leaf_nodes:
handle_leaf_node(node)
- # XXX: We don't walk the chk map to determine
- # referenced (file_id, revision_id) keys.
- # We don't do it yet because you really need to
- # filter out the ones that are present in the
- # parents of the rev just before the ones you are
- # copying, otherwise the filter is grabbing too
- # many keys...
counter[0] += 1
if pb is not None:
pb.update('chk node', counter[0], total_keys)
More information about the bazaar-commits
mailing list