Rev 3328: Catch some extra deprecated calls. in http://people.ubuntu.com/~robertc/baz2.0/versioned_files
Robert Collins
robertc at robertcollins.net
Tue Apr 8 23:48:00 BST 2008
At http://people.ubuntu.com/~robertc/baz2.0/versioned_files
------------------------------------------------------------
revno: 3328
revision-id: robertc at robertcollins.net-20080408224755-cv6j2zt6ij6mvsav
parent: robertc at robertcollins.net-20080408214115-qiz6rr5kyt5mxsyi
committer: Robert Collins <robertc at robertcollins.net>
branch nick: api-cleanup
timestamp: Wed 2008-04-09 08:47:55 +1000
message:
Catch some extra deprecated calls.
modified:
bzrlib/fetch.py fetch.py-20050818234941-26fea6105696365d
bzrlib/repository.py rev_storage.py-20051111201905-119e9401e46257e3
=== modified file 'bzrlib/fetch.py'
--- a/bzrlib/fetch.py 2008-04-08 00:57:07 +0000
+++ b/bzrlib/fetch.py 2008-04-08 22:47:55 +0000
@@ -216,15 +216,6 @@
# we fetch all the texts, because texts do
# not reference anything, and its cheap enough
to_weave.join(from_weave, version_ids=required_versions)
- # we don't need *all* of this data anymore, but we dont know
- # what we do. This cache clearing will result in a new read
- # of the knit data when we do the checkout, but probably we
- # want to emit the needed data on the fly rather than at the
- # end anyhow.
- # the from weave should know not to cache data being joined,
- # but its ok to ask it to clear.
- from_weave.clear_cache()
- to_weave.clear_cache()
def _fetch_inventory_weave(self, revs, pb):
pb.update("fetch inventory", 0, 2)
@@ -242,7 +233,6 @@
# corrupt.
to_weave.join(from_weave, pb=child_pb, msg='merge inventory',
version_ids=revs)
- from_weave.clear_cache()
finally:
child_pb.finished()
=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py 2008-04-08 21:41:15 +0000
+++ b/bzrlib/repository.py 2008-04-08 22:47:55 +0000
@@ -420,13 +420,10 @@
# implementation could give us bad output from readlines() so this is
# not a guarantee of safety. What would be better is always checking
# the content during test suite execution. RBC 20070912
- try:
- return versionedfile.add_lines_with_ghosts(
- self._new_revision_id, parents, new_lines,
- nostore_sha=nostore_sha, random_id=self.random_revid,
- check_content=False)[0:2]
- finally:
- versionedfile.clear_cache()
+ return versionedfile.add_lines_with_ghosts(
+ self._new_revision_id, parents, new_lines,
+ nostore_sha=nostore_sha, random_id=self.random_revid,
+ check_content=False)[0:2]
class RootCommitBuilder(CommitBuilder):
@@ -1468,7 +1465,6 @@
# inventory
yield ("inventory", None, revision_ids)
- inv_w.clear_cache()
# signatures
revisions_with_signatures = set()
More information about the bazaar-commits
mailing list