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

Share more infrastructure between LocalGitDir and RemoteGitDir.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
from bzrlib.plugins.git import git
27
27
from bzrlib.plugins.git.branch import GitBranch
 
28
from bzrlib.plugins.git.dir import GitDir
28
29
from bzrlib.plugins.git.foreign import ForeignBranch
29
30
from bzrlib.plugins.git.repository import GitFormat, GitRepository
30
31
 
78
79
        return GitSmartTransport(newurl, self._client)
79
80
 
80
81
 
81
 
class RemoteGitDir(BzrDir):
 
82
class RemoteGitDir(GitDir):
82
83
 
83
84
    def __init__(self, transport, lockfiles, format):
84
85
        self._format = format
86
87
        self.transport = transport
87
88
        self._lockfiles = lockfiles
88
89
 
89
 
    def is_supported(self):
90
 
        return True
91
 
 
92
90
    def open_repository(self):
93
91
        return RemoteGitRepository(self, self._lockfiles)
94
92