Rev 2745: This cleans up a few things in fetch.py that are bit-rotten: in http://people.ubuntu.com/~robertc/baz2.0/misc-fixen
Robert Collins
robertc at robertcollins.net
Wed Aug 22 23:30:41 BST 2007
At http://people.ubuntu.com/~robertc/baz2.0/misc-fixen
------------------------------------------------------------
revno: 2745
revision-id: robertc at robertcollins.net-20070822223011-7ir7fquiyjqpgzko
parent: robertc at robertcollins.net-20070822222807-nvjwqzrof5gg3s0b
committer: Robert Collins <robertc at robertcollins.net>
branch nick: misc-fixen
timestamp: Thu 2007-08-23 08:30:11 +1000
message:
This cleans up a few things in fetch.py that are bit-rotten:
- the overly general control_files interface is removed in place of
using get_inventory_weave.
- unused variables are removed
- a empty 4-space indent is turned into a empty line.
(Robert Collins)
modified:
bzrlib/fetch.py fetch.py-20050818234941-26fea6105696365d
=== modified file 'bzrlib/fetch.py'
--- a/bzrlib/fetch.py 2007-08-16 05:50:11 +0000
+++ b/bzrlib/fetch.py 2007-08-22 22:30:11 +0000
@@ -121,9 +121,7 @@
requested revisions, finally clearing the progress bar.
"""
self.to_weaves = self.to_repository.weave_store
- self.to_control = self.to_repository.control_weaves
self.from_weaves = self.from_repository.weave_store
- self.from_control = self.from_repository.control_weaves
self.count_total = 0
self.file_ids_names = {}
pp = ProgressPhase('Fetch phase', 4, self.pb)
@@ -221,9 +219,7 @@
def _fetch_inventory_weave(self, revs, pb):
pb.update("fetch inventory", 0, 2)
- to_weave = self.to_control.get_weave('inventory',
- self.to_repository.get_transaction())
-
+ to_weave = self.to_repository.get_inventory_weave()
child_pb = bzrlib.ui.ui_factory.nested_progress_bar()
try:
# just merge, this is optimisable and its means we don't
@@ -249,7 +245,7 @@
after fetching weave texts.
"""
pass
-
+
class GenericRepoFetcher(RepoFetcher):
"""This is a generic repo to repo fetcher.
More information about the bazaar-commits
mailing list