~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/serializer/v4.py

  • Committer: Aaron Bentley
  • Date: 2008-04-28 00:49:40 UTC
  • mto: This revision was merged to the branch mainline in revision 3392.
  • Revision ID: aaron@aaronbentley.com-20080428004940-hipydum9ucwsc0qu
Test that the stored inventory hash is correct when bundles are used

Show diffs side-by-side

added added

removed removed

Lines of Context:
588
588
    def _install_revision(self, revision_id, metadata, text):
589
589
        if self._repository.has_revision(revision_id):
590
590
            return
591
 
        self._repository._add_revision_text(revision_id, text)
 
591
        if self._info['serializer'] == self._repository._serializer.format_num:
 
592
            self._repository._add_revision_text(revision_id, text)
 
593
        revision = self._source_serializer.read_revision_from_string(text)
 
594
        self._repository.add_revision(revision.revision_id, revision)
592
595
 
593
596
    def _install_signature(self, revision_id, metadata, text):
594
597
        transaction = self._repository.get_transaction()