/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

Use central git module.

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, os
 
19
import os
20
20
 
21
21
import bzrlib
22
22
from bzrlib.lazy_import import lazy_import
37
37
""")
38
38
 
39
39
 
 
40
 
40
41
class GitLock(object):
41
42
    """A lock that thunks through to Git."""
42
43
 
137
138
        """Open this directory.
138
139
 
139
140
        """
 
141
        from bzrlib.plugins.git import git
140
142
        # we dont grok readonly - git isn't integrated with transport.
141
143
        url = transport.base
142
144
        if url.startswith('readonly+'):
173
175
 
174
176
    def initialize_on_transport(self, transport):
175
177
        from bzrlib.transport.local import LocalTransport
 
178
        from bzrlib.plugins.git import git
176
179
 
177
180
        if not isinstance(transport, LocalTransport):
178
181
            raise NotImplementedError(self.initialize,