Rev 92: Update versionedfiles. in http://people.samba.org/bzr/jelmer/bzr-git/trunk

Jelmer Vernooij jelmer at samba.org
Sat Aug 23 12:34:38 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-git/trunk

------------------------------------------------------------
revno: 92
revision-id: jelmer at samba.org-20080823113436-cgwyyd33jsj6v1hv
parent: jelmer at samba.org-20080728014348-cgq9jwebhl6pdnc9
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sat 2008-08-23 13:34:36 +0200
message:
  Update versionedfiles.
modified:
  git_repository.py              git_repository.py-20071108234408-ygidvy5hviixghsd-2
  tests/test_versionedfiles.py   test_versionedfiles.-20080626153242-v0c6uolklpux67a1-1
  versionedfiles.py              versionedfiles.py-20080626134117-j8g0ntz1pj228iox-1
=== modified file 'git_repository.py'
--- a/git_repository.py	2008-07-26 20:56:51 +0000
+++ b/git_repository.py	2008-08-23 11:34:36 +0000
@@ -37,6 +37,7 @@
 from bzrlib.plugins.git import (
     cache,
     ids,
+    versionedfiles
     )
 
 
@@ -54,8 +55,8 @@
         cachedir_transport = get_transport(cache_dir)
         cache_file = os.path.join(cache_dir, 'cache-%s' % ids.NAMESPACE)
         self.texts = None
-        self.signatures = versionedfile.VirtualSignatureTexts(self)
-        self.revisions = versionedfile.VirtualRevisionTexts(self)
+        self.signatures = versionedfiles.VirtualSignatureTexts(self)
+        self.revisions = versionedfiles.VirtualRevisionTexts(self)
         self._format = GitFormat()
         self._fallback_repositories = []
 

=== modified file 'tests/test_versionedfiles.py'
--- a/tests/test_versionedfiles.py	2008-07-28 01:43:48 +0000
+++ b/tests/test_versionedfiles.py	2008-08-23 11:34:36 +0000
@@ -44,6 +44,9 @@
 
 
 class VirtualRevisionTextsTests(TestCase,BasicSvnTextsTests):
+    def _make_parents_provider(self):
+        return self
+
     def setUp(self):
         self.texts = VirtualRevisionTexts(self)
 
@@ -52,6 +55,9 @@
 
 
 class VirtualInventoryTextsTests(TestCase,BasicSvnTextsTests):
+    def _make_parents_provider(self):
+        return self
+
     def get_inventory_xml(self, key):
         return "FOO"
 
@@ -66,6 +72,9 @@
 
 
 class VirtualSignatureTextsTests(TestCase,BasicSvnTextsTests):
+    def _make_parents_provider(self):
+        return self
+
     def setUp(self):
         self.texts = VirtualSignatureTexts(self)
 

=== modified file 'versionedfiles.py'
--- a/versionedfiles.py	2008-07-28 01:43:48 +0000
+++ b/versionedfiles.py	2008-08-23 11:34:36 +0000
@@ -35,6 +35,9 @@
         raise NotImplementedError(self.add_mpdiffs)
 
     def get_record_stream(self, keys, ordering, include_delta_closure):
+        # TODO: there may be valid text revisions that only exist as 
+        # ghosts in the repository itself. This function will 
+        # not be able to report them.
         # TODO: Sort keys by file id and issue just one get_file_revs() call 
         # per file-id ?
         for (fileid, revid) in list(keys):




More information about the bazaar-commits mailing list