Rev 4472: Add explicit test for autopack of CHK repositories when CHK pages are not in the source packs. in http://people.ubuntu.com/~robertc/baz2.0/pending/autopack-cross-format-fetch

Robert Collins robertc at robertcollins.net
Tue Jun 23 00:24:17 BST 2009


At http://people.ubuntu.com/~robertc/baz2.0/pending/autopack-cross-format-fetch

------------------------------------------------------------
revno: 4472
revision-id: robertc at robertcollins.net-20090622232400-3v66jsa4bdorxcn6
parent: robertc at robertcollins.net-20090622215537-f7kxi0tui92ysiec
committer: Robert Collins <robertc at robertcollins.net>
branch nick: autopack-cross-format-fetch
timestamp: Tue 2009-06-23 09:24:00 +1000
message:
  Add explicit test for autopack of CHK repositories when CHK pages are not in the source packs.
=== modified file 'bzrlib/tests/test_repository.py'
--- a/bzrlib/tests/test_repository.py	2009-06-22 06:15:41 +0000
+++ b/bzrlib/tests/test_repository.py	2009-06-22 23:24:00 +0000
@@ -692,6 +692,14 @@
         self.assertEqual(65536,
             inv.parent_id_basename_to_file_id._root_node.maximum_size)
 
+    def test_autopack_unchanged_chk_nodes(self):
+        # at 20 unchanged commits, chk pages are packed that are split into
+        # two groups such that the new pack being made doesn't have all its
+        # pages in the source packs (though they are in the repository).
+        tree = self.make_branch_and_tree('tree', format='2a')
+        for pos in range(20):
+            tree.commit(str(pos))
+
     def test_pack_with_hint(self):
         tree = self.make_branch_and_tree('tree', format='2a')
         # 1 commit to leave untouched




More information about the bazaar-commits mailing list