/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 commands.py

Fix tests, split up InterGitNonGitRepository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
            NoRepositoryPresent,
83
83
            NotBranchError,
84
84
            )
85
 
        from bzrlib.repository import Repository
 
85
        from bzrlib.repository import (
 
86
            InterRepository,
 
87
            Repository,
 
88
            )
86
89
        from bzrlib.plugins.git.branch import GitBranch
87
 
        from bzrlib.plugins.git.fetch import InterGitNonGitRepository
88
90
        from bzrlib.plugins.git.repository import GitRepository
89
91
 
90
92
        if dest_location is None:
103
105
        except NoRepositoryPresent:
104
106
            target_repo = target_bzrdir.create_repository(shared=True)
105
107
 
106
 
        interrepo = InterGitNonGitRepository(source_repo, target_repo)
 
108
        interrepo = InterRepository.get(source_repo, target_repo)
107
109
        mapping = source_repo.get_mapping()
108
110
        refs = interrepo.fetch_refs()
109
111
        pb = ui.ui_factory.nested_progress_bar()