~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/groupcompress_repo.py

  • Committer: John Arbash Meinel
  • Date: 2009-05-08 16:37:01 UTC
  • mto: This revision was merged to the branch mainline in revision 4392.
  • Revision ID: john@arbash-meinel.com-20090508163701-dewi8koteoyjbem6
Set 'supports_external_lookups=True' for dev6 repositories.
I'm choosing not to do a new format, since it is dev anyway...
At the moment, that means supporting 'suspend_write_group', and implementing
'_index.get_missing_parents'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
        have deltas based on a fallback repository.
164
164
        (See <https://bugs.launchpad.net/bzr/+bug/288751>)
165
165
        """
166
 
        # Groupcompress packs don't have any external references
 
166
        # Groupcompress packs don't have any external references, arguably CHK
 
167
        # pages have external references, but we cannot 'cheaply' determine
 
168
        # them without actually walking all of the chk pages.
167
169
 
168
170
 
169
171
class GCCHKPacker(Packer):
843
845
            return GroupCHKStreamSource(self, to_format)
844
846
        return super(CHKInventoryRepository, self)._get_source(to_format)
845
847
 
846
 
    def suspend_write_group(self):
847
 
        raise errors.UnsuspendableWriteGroup(self)
848
 
 
849
 
    def _resume_write_group(self, tokens):
850
 
        raise errors.UnsuspendableWriteGroup(self)
851
 
 
852
848
 
853
849
class GroupCHKStreamSource(repository.StreamSource):
854
850
    """Used when both the source and target repo are GroupCHK repos."""
955
951
    """A hashed CHK+group compress pack repository."""
956
952
 
957
953
    repository_class = CHKInventoryRepository
 
954
    supports_external_lookups = True
958
955
    supports_chks = True
959
956
    # For right now, setting this to True gives us InterModel1And2 rather
960
957
    # than InterDifferingSerializer