Rev 2926: Remove an unnecessary assertion. in http://people.ubuntu.com/~robertc/baz2.0/commit

Robert Collins robertc at robertcollins.net
Mon Oct 22 23:44:58 BST 2007


At http://people.ubuntu.com/~robertc/baz2.0/commit

------------------------------------------------------------
revno: 2926
revision-id:robertc at robertcollins.net-20071022224454-mq7ff0qe7evdupb0
parent: robertc at robertcollins.net-20071022214256-r19wm0qutqjezc21
committer: Robert Collins <robertc at robertcollins.net>
branch nick: commit
timestamp: Tue 2007-10-23 08:44:54 +1000
message:
  Remove an unnecessary assertion.
modified:
  bzrlib/commit.py               commit.py-20050511101309-79ec1a0168e0e825
=== modified file 'bzrlib/commit.py'
--- a/bzrlib/commit.py	2007-10-22 21:42:56 +0000
+++ b/bzrlib/commit.py	2007-10-22 22:44:54 +0000
@@ -702,9 +702,9 @@
         report_changes = self.reporter.is_verbose()
         deleted_ids = []
         deleted_paths = set()
+        # XXX: Note that entries may have the wrong kind because the entry does
+        # not reflect the status on disk.
         work_inv = self.work_tree.inventory
-        assert work_inv.root is not None
-        # XXX: Note that entries may have the wrong kind.
         entries = work_inv.iter_entries_by_dir(
             specific_file_ids=self.specific_file_ids, yield_parents=True)
         for path, existing_ie in entries:



More information about the bazaar-commits mailing list