~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
466
466
        self._info = None
467
467
 
468
468
    def install(self):
469
 
        """Perform the installation"""
 
469
        """Perform the installation.
 
470
        
 
471
        Must be called with the Repository locked.
 
472
        """
 
473
        self._repository.start_write_group()
 
474
        try:
 
475
            result = self._install_in_write_group()
 
476
        except:
 
477
            self._repository.abort_write_group()
 
478
            raise
 
479
        self._repository.commit_write_group()
 
480
        return result
 
481
 
 
482
    def _install_in_write_group(self):
470
483
        current_file = None
471
484
        current_versionedfile = None
472
485
        pending_file_records = []