/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:
98
98
    def open_workingtree(self):
99
99
        raise NotLocalUrl(self.transport.base)
100
100
 
 
101
    def cloning_metadir(self, stacked=False):
 
102
        """Produce a metadir suitable for cloning with."""
 
103
        if stacked:
 
104
            return bzrlib.bzrdir.format_registry.make_bzrdir("1.6.1-rich-root")
 
105
        else:
 
106
            return bzrlib.bzrdir.format_registry.make_bzrdir("rich-root-pack")
 
107
 
101
108
 
102
109
class RemoteGitRepository(GitRepository):
103
110
 
104
111
    def __init__(self, gitdir, lockfiles):
105
112
        GitRepository.__init__(self, gitdir, lockfiles)
106
113
 
107
 
    def fetch_pack(self, determine_wants, graph_walker, pack_data, 
108
 
                   progress=None):
109
 
        self._transport.fetch_pack(determine_wants, graph_walker, pack_data, 
110
 
            progress)
 
114
    def fetch_pack(self, determine_wants, graph_walker, pack_data, progress=None):
 
115
        self._transport.fetch_pack(determine_wants, graph_walker, pack_data, progress)
111
116
 
112
117
 
113
118
class RemoteGitBranch(GitBranch):
122
127
    def last_revision(self):
123
128
        return self.mapping.revision_id_foreign_to_bzr(self._ref)
124
129
 
 
130
 
 
131