Rev 5858: (jelmer) Move Repository.find_text_key_references to in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Fri May 13 13:24:32 UTC 2011


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 5858 [merge]
revision-id: pqm at pqm.ubuntu.com-20110513132429-krofy2n5nfmhlf5h
parent: pqm at pqm.ubuntu.com-20110513104321-8j4cwyl49p3f2bwc
parent: jelmer at samba.org-20110513102242-4cqoauhgb89n93u3
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Fri 2011-05-13 13:24:29 +0000
message:
  (jelmer) Move Repository.find_text_key_references to
   VersionedFileRepository. (Jelmer Vernooij)
renamed:
  bzrlib/tests/per_repository/test_find_text_key_references.py => bzrlib/tests/per_repository_vf/test_find_text_key_references.py test_find_text_key_r-20071114033605-v73bakal8x77qlfi-1
modified:
  bzrlib/repository.py           rev_storage.py-20051111201905-119e9401e46257e3
  bzrlib/tests/per_repository/__init__.py __init__.py-20060131092037-9564957a7d4a841b
  bzrlib/tests/per_repository_vf/__init__.py __init__.py-20110224144010-ukgfmlxcgsibq4u4-2
  bzrlib/tests/per_repository_vf/test_find_text_key_references.py test_find_text_key_r-20071114033605-v73bakal8x77qlfi-1
=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py	2011-05-09 12:01:12 +0000
+++ b/bzrlib/repository.py	2011-05-13 10:07:00 +0000
@@ -927,15 +927,6 @@
         """
         raise NotImplementedError(self.add_signature_text)
 
-    def find_text_key_references(self):
-        """Find the text key references within the repository.
-
-        :return: A dictionary mapping text keys ((fileid, revision_id) tuples)
-            to whether they were referred to by the tree of the
-            revision_id that they contain. 
-        """
-        raise NotImplementedError(self.find_text_key_references)
-
     def _find_parent_ids_of_revisions(self, revision_ids):
         """Find all parent ids that are mentioned in the revision graph.
 

=== modified file 'bzrlib/tests/per_repository/__init__.py'
--- a/bzrlib/tests/per_repository/__init__.py	2011-05-09 17:52:54 +0000
+++ b/bzrlib/tests/per_repository/__init__.py	2011-05-13 10:07:00 +0000
@@ -115,7 +115,6 @@
         'test_commit_builder',
         'test_fetch',
         'test_fileid_involved',
-        'test_find_text_key_references',
         'test_get_parent_map',
         'test_has_same_location',
         'test_has_revisions',

=== modified file 'bzrlib/tests/per_repository_vf/__init__.py'
--- a/bzrlib/tests/per_repository_vf/__init__.py	2011-05-12 23:50:39 +0000
+++ b/bzrlib/tests/per_repository_vf/__init__.py	2011-05-13 10:07:00 +0000
@@ -40,6 +40,7 @@
         'test_add_inventory_by_delta',
         'test_check',
         'test_check_reconcile',
+        'test_find_text_key_references',
         'test__generate_text_key_index',
         'test_fetch',
         'test_reconcile',

=== renamed file 'bzrlib/tests/per_repository/test_find_text_key_references.py' => 'bzrlib/tests/per_repository_vf/test_find_text_key_references.py'
--- a/bzrlib/tests/per_repository/test_find_text_key_references.py	2009-03-23 14:59:43 +0000
+++ b/bzrlib/tests/per_repository_vf/test_find_text_key_references.py	2011-05-13 10:22:42 +0000
@@ -18,11 +18,19 @@
 """Test the find_text_key_references API."""
 
 
-from bzrlib.tests.per_repository import TestCaseWithRepository
+from bzrlib.tests.per_repository_vf import (
+    TestCaseWithRepository,
+    all_repository_vf_format_scenarios,
+    )
+from bzrlib.tests.scenarios import load_tests_apply_scenarios
+
+load_tests = load_tests_apply_scenarios
 
 
 class TestFindTextKeyReferences(TestCaseWithRepository):
 
+    scenarios = all_repository_vf_format_scenarios()
+
     def test_empty(self):
         repo = self.make_repository('.')
         repo.lock_read()




More information about the bazaar-commits mailing list