Rev 2755: Rename RepositoryPackCollection.save to _save_pack_names in http://sourcefrog.net/bzr/pack-repository
Martin Pool
mbp at sourcefrog.net
Fri Sep 21 06:41:04 BST 2007
At http://sourcefrog.net/bzr/pack-repository
------------------------------------------------------------
revno: 2755
revision-id: mbp at sourcefrog.net-20070921054103-35zlfela1bbsafwo
parent: mbp at sourcefrog.net-20070920080458-fhr70d0gbnd82fio
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: pack-repository
timestamp: Fri 2007-09-21 15:41:03 +1000
message:
Rename RepositoryPackCollection.save to _save_pack_names
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-09-20 08:04:58 +0000
+++ b/bzrlib/repofmt/pack_repo.py 2007-09-21 05:41:03 +0000
@@ -441,7 +441,7 @@
self._remove_pack_by_name(pack_detail[1])
# record the newly available packs and stop advertising the old
# packs
- self.save()
+ self._save_pack_names()
# move the old packs out of the way
for revision_count, pack_details in pack_operations:
self._obsolete_packs(pack_details)
@@ -806,7 +806,7 @@
else:
return all_index.iter_entries(key_filter)
- def save(self):
+ def _save_pack_names(self):
builder = GraphIndexBuilder()
for name, sizes in self._names.iteritems():
builder.add_node((name, ), ' '.join(str(size) for size in sizes))
@@ -875,7 +875,7 @@
new_pack.signature_index_length)
self.repo._open_pack_tuple = None
if not self.autopack():
- self.save()
+ self._save_pack_names()
else:
# remove the pending upload
self.repo._upload_transport.delete(self.repo._open_pack_tuple[1])
More information about the bazaar-commits
mailing list