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

Provide VersionedFiles.get_annotator.

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
 
134
134
        """
135
135
        lazy_check_versions()
136
 
        # we dont grok readonly - git isn't integrated with transport.
137
 
        from bzrlib.transport.local import LocalTransport
138
 
        if isinstance(transport, LocalTransport):
139
 
            import dulwich
140
 
            path = transport.local_abspath(".").encode(osutils._fs_enc)
141
 
            gitrepo = dulwich.repo.Repo(path)
142
 
        else:
143
 
            from bzrlib.plugins.git.transportgit import TransportRepo
144
 
            gitrepo = TransportRepo(transport)
 
136
        from bzrlib.plugins.git.transportgit import TransportRepo
 
137
        gitrepo = TransportRepo(transport)
145
138
        from bzrlib.plugins.git.dir import LocalGitDir, GitLockableFiles, GitLock
146
139
        lockfiles = GitLockableFiles(transport, GitLock())
147
140
        return LocalGitDir(transport, lockfiles, gitrepo, self)