Rev 4533: Remove some assert statements. in http://bazaar.launchpad.net/~jameinel/bzr/1.17-rework-annotate

John Arbash Meinel john at arbash-meinel.com
Thu Jul 9 00:10:51 BST 2009


At http://bazaar.launchpad.net/~jameinel/bzr/1.17-rework-annotate

------------------------------------------------------------
revno: 4533
revision-id: john at arbash-meinel.com-20090708231047-8zlppczwumi0e0hp
parent: john at arbash-meinel.com-20090708205810-mq7e81jnpccob2qa
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 1.17-rework-annotate
timestamp: Wed 2009-07-08 18:10:47 -0500
message:
  Remove some assert statements.
-------------- next part --------------
=== modified file 'bzrlib/_annotator_py.py'
--- a/bzrlib/_annotator_py.py	2009-07-08 17:09:03 +0000
+++ b/bzrlib/_annotator_py.py	2009-07-08 23:10:47 +0000
@@ -292,7 +292,6 @@
         """
         custom_tiebreaker = annotate._break_annotation_tie
         annotations, lines = self.annotate(key)
-        assert len(annotations) == len(lines)
         out = []
         heads = self._get_heads_provider().heads
         append = out.append

=== modified file 'bzrlib/knit.py'
--- a/bzrlib/knit.py	2009-07-06 20:21:34 +0000
+++ b/bzrlib/knit.py	2009-07-08 23:10:47 +0000
@@ -3532,7 +3532,6 @@
                 lines = self._expand_record(child_key, parent_keys,
                                             compression_parent,
                                             record, record_details)
-                assert lines is not None
                 if self._check_ready_for_annotations(child_key, parent_keys):
                     to_return.append(child_key)
         # Also check any children that are waiting for this parent to be
@@ -3595,7 +3594,6 @@
             # ghosts?
             details = self._all_build_details[key]
             (_, compression_parent, parent_keys, record_details) = details
-            assert parent_keys == self._parent_map[key]
             lines = self._expand_record(key, parent_keys, compression_parent,
                                         record, record_details)
             if lines is None:



More information about the bazaar-commits mailing list