~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

Merge in nested progress bars

Show diffs side-by-side

added added

removed removed

Lines of Context:
419
419
        repo_dir = bzrdir.BzrDirMetaFormat1().initialize('repository')
420
420
        repo = repository.RepositoryFormat7().initialize(repo_dir)
421
421
        target_format = repository.RepositoryFormatKnit1()
422
 
        pb = bzrlib.ui.ui_factory.progress_bar()
423
 
 
424
422
        converter = repository.CopyConverter(target_format)
425
 
        converter.convert(repo, pb)
 
423
        pb = bzrlib.ui.ui_factory.nested_progress_bar()
 
424
        try:
 
425
            converter.convert(repo, pb)
 
426
        finally:
 
427
            pb.finished()
426
428
        repo = repo_dir.open_repository()
427
429
        self.assertTrue(isinstance(target_format, repo._format.__class__))