Rev 4471: We should write the indexes before we write the pack file. in http://bzr.arbash-meinel.com/branches/bzr/jam-integration
John Arbash Meinel
john at arbash-meinel.com
Tue Jun 23 15:45:39 BST 2009
At http://bzr.arbash-meinel.com/branches/bzr/jam-integration
------------------------------------------------------------
revno: 4471
revision-id: john at arbash-meinel.com-20090623144445-soj2t4nzdny5z3b0
parent: pqm at pqm.ubuntu.com-20090623003517-lrjel82rf7q6qjlc
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: jam-integration
timestamp: Tue 2009-06-23 09:44:45 -0500
message:
We should write the indexes before we write the pack file.
-------------- next part --------------
=== modified file 'bzrlib/repofmt/pack_repo.py'
--- a/bzrlib/repofmt/pack_repo.py 2009-06-22 04:56:21 +0000
+++ b/bzrlib/repofmt/pack_repo.py 2009-06-23 14:44:45 +0000
@@ -313,8 +313,6 @@
def finish(self):
self._check_references()
- new_name = '../packs/' + self.file_name()
- self.upload_transport.rename(self.file_name(), new_name)
index_types = ['revision', 'inventory', 'text', 'signature']
if self.chk_index is not None:
index_types.append('chk')
@@ -323,6 +321,8 @@
new_name = '../indices/' + old_name
self.upload_transport.rename(old_name, new_name)
self._replace_index_with_readonly(index_type)
+ new_name = '../packs/' + self.file_name()
+ self.upload_transport.rename(self.file_name(), new_name)
self._state = 'finished'
def _get_external_refs(self, index):
More information about the bazaar-commits
mailing list