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

Make API resemble that of python-git.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""An adapter between a Git control dir and a Bazaar BzrDir"""
18
18
 
19
 
import git, git.repository, os
 
19
import git, git.repo, os
20
20
 
21
21
import bzrlib
22
22
from bzrlib.lazy_import import lazy_import
143
143
            url = url[len('readonly+'):]
144
144
 
145
145
        try:
146
 
            gitrepo = git.repository.Repository(transport.local_abspath("."))
 
146
            gitrepo = git.repo.Repo(transport.local_abspath("."))
147
147
        except errors.bzr_errors.NotLocalUrl:
148
148
            raise errors.bzr_errors.NotBranchError(path=transport.base)
149
149
        lockfiles = GitLockableFiles(GitLock())