/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/groupcompress_repo.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-12 22:28:28 UTC
  • mfrom: (4597.1.10 1.19-bug-402778)
  • Revision ID: pqm@pqm.ubuntu.com-20090812222828-fdlyshwsomwvfaf2
(jam) Fixes for 2a, stacking and InterDifferingSerializer (#402778,
        #412198)

Show diffs side-by-side

added added

removed removed

Lines of Context:
410
410
 
411
411
    def _copy_inventory_texts(self):
412
412
        source_vf, target_vf = self._build_vfs('inventory', True, True)
413
 
        self._copy_stream(source_vf, target_vf, self.revision_keys,
 
413
        # It is not sufficient to just use self.revision_keys, as stacked
 
414
        # repositories can have more inventories than they have revisions.
 
415
        # One alternative would be to do something with
 
416
        # get_parent_map(self.revision_keys), but that shouldn't be any faster
 
417
        # than this.
 
418
        inventory_keys = source_vf.keys()
 
419
        missing_inventories = set(self.revision_keys).difference(inventory_keys)
 
420
        if missing_inventories:
 
421
            missing_inventories = sorted(missing_inventories)
 
422
            raise ValueError('We are missing inventories for revisions: %s'
 
423
                % (missing_inventories,))
 
424
        self._copy_stream(source_vf, target_vf, inventory_keys,
414
425
                          'inventories', self._get_filtered_inv_stream, 2)
415
426
 
416
427
    def _copy_chk_texts(self):
1110
1121
 
1111
1122
class RepositoryFormat2a(RepositoryFormatCHK2):
1112
1123
    """A CHK repository that uses the bencode revision serializer.
1113
 
    
 
1124
 
1114
1125
    This is the same as RepositoryFormatCHK2 but with a public name.
1115
1126
    """
1116
1127