Rev 3913: InterDifferingSerializer inherits directly from InterRepository. in http://bazaar.launchpad.net/%7Ebzr/bzr/brisbane-core

John Arbash Meinel john at arbash-meinel.com
Tue Mar 31 15:50:45 BST 2009


At http://bazaar.launchpad.net/%7Ebzr/bzr/brisbane-core

------------------------------------------------------------
revno: 3913
revision-id: john at arbash-meinel.com-20090331144937-gvsid6ezwm30g4uu
parent: v.ladeuil+lp at free.fr-20090331135233-wnixjq3bb54siugi
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: brisbane-core
timestamp: Tue 2009-03-31 09:49:37 -0500
message:
  InterDifferingSerializer inherits directly from InterRepository.
  We don't want/need the 'optimized' knit search code path, so we may as well
  use the base implementation.
-------------- next part --------------
=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py	2009-03-31 11:55:00 +0000
+++ b/bzrlib/repository.py	2009-03-31 14:49:37 +0000
@@ -3548,7 +3548,7 @@
         return self.source.revision_ids_to_search_result(result_set)
 
 
-class InterDifferingSerializer(InterKnitRepo):
+class InterDifferingSerializer(InterRepository):
 
     @classmethod
     def _get_repo_format_to_test(self):
@@ -3557,15 +3557,6 @@
     @staticmethod
     def is_compatible(source, target):
         """Be compatible with Knit2 source and Knit3 target"""
-        # XXX: What do we need to do to support fetching them?
-        # if source.supports_rich_root() != target.supports_rich_root():
-        #     return False
-        # Ideally, we'd support fetching if the source had no tree references
-        # even if it supported them...
-        # XXX: What do we need to do to support fetching them?
-        # if (getattr(source._format, 'supports_tree_reference', False) and
-        #     not getattr(target._format, 'supports_tree_reference', False)):
-        #    return False
         return True
 
     def _get_delta_for_revision(self, tree, parent_ids, basis_id, cache):



More information about the bazaar-commits mailing list