Rev 2948: Trim the parameters in CommitBuilder._check_root to drop parent_invs as it is unused. in http://people.ubuntu.com/~robertc/baz2.0/commit-builder

Robert Collins robertc at robertcollins.net
Sat Oct 27 01:09:57 BST 2007


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

------------------------------------------------------------
revno: 2948
revision-id:robertc at robertcollins.net-20071027000951-8i35lzu5ekoxpbob
parent: robertc at robertcollins.net-20071027000147-b04ojn0wek4mzp9u
committer: Robert Collins <robertc at robertcollins.net>
branch nick: commit-builder
timestamp: Sat 2007-10-27 10:09:51 +1000
message:
  Trim the parameters in CommitBuilder._check_root to drop parent_invs as it is unused.
modified:
  bzrlib/repository.py           rev_storage.py-20051111201905-119e9401e46257e3
=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py	2007-10-25 06:17:57 +0000
+++ b/bzrlib/repository.py	2007-10-27 00:09:51 +0000
@@ -188,13 +188,10 @@
         else:
             self.random_revid = False
 
-    def _check_root(self, ie, parent_invs, tree):
+    def _check_root(self, ie):
         """Helper for record_entry_contents.
 
         :param ie: An entry being added.
-        :param parent_invs: The inventories of the parent revisions of the
-            commit.
-        :param tree: The tree that is being committed.
         """
         # In this revision format, root entries have no knit or weave When
         # serializing out to disk and back in root.revision is always
@@ -240,7 +237,7 @@
         if self.new_inventory.root is None:
             if ie.parent_id is not None:
                 raise errors.RootMissing()
-            self._check_root(ie, parent_invs, tree)
+            self._check_root(ie)
         if ie.revision is None:
             kind = content_summary[0]
         else:
@@ -425,13 +422,10 @@
     # the root entry gets versioned properly by this builder.
     _versioned_root = True
 
-    def _check_root(self, ie, parent_invs, tree):
+    def _check_root(self, ie):
         """Helper for record_entry_contents.
 
         :param ie: An entry being added.
-        :param parent_invs: The inventories of the parent revisions of the
-            commit.
-        :param tree: The tree that is being committed.
         """
 
 



More information about the bazaar-commits mailing list