Rev 2735: Start working up the consolidation of the different pack thunks into Pack objects. in http://people.ubuntu.com/~robertc/baz2.0/repository

Robert Collins robertc at robertcollins.net
Fri Aug 24 06:53:29 BST 2007


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

------------------------------------------------------------
revno: 2735
revision-id: robertc at robertcollins.net-20070824055312-duv6jw3ed0ls1gq3
parent: robertc at robertcollins.net-20070824031411-ip7d84l2ahbm6foz
committer: Robert Collins <robertc at robertcollins.net>
branch nick: repository
timestamp: Fri 2007-08-24 15:53:12 +1000
message:
  Start working up the consolidation of the different pack thunks into Pack objects.
modified:
  bzrlib/repofmt/pack_repo.py    pack_repo.py-20070813041115-gjv5ma7ktfqwsjgn-1
=== modified file 'bzrlib/repofmt/pack_repo.py'
--- a/bzrlib/repofmt/pack_repo.py	2007-08-24 02:14:19 +0000
+++ b/bzrlib/repofmt/pack_repo.py	2007-08-24 05:53:12 +0000
@@ -1204,6 +1204,14 @@
             # - the existing name is not the actual hash - e.g.
             #   its a deliberate attack or data corruption has
             #   occuring during the write of that file.
+            new_pack = Pack()
+            new_pack.name = new_name
+            new_pack.transport = self._upload_transport.clone('../packs/')
+            # To populate:
+            # new_pack.revision_index = 
+            # new_pack.inventory_index = 
+            # new_pack.text_index = 
+            # new_pack.signature_index = 
             self._packs.allocate(new_name)
             self.weave_store.flush(new_name)
             self._inv_thunk.flush(new_name)



More information about the bazaar-commits mailing list