/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

get_branch_transport takes a name argument.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
    def is_control_filename(self, filename):
127
127
        return filename == '.git' or filename.startswith('.git/')
128
128
 
129
 
    def get_branch_transport(self, branch_format):
 
129
    def get_branch_transport(self, branch_format, name):
130
130
        if branch_format is None:
131
131
            return self.transport
132
132
        if isinstance(branch_format, LocalGitBzrDirFormat):
133
133
            return self.transport
134
134
        raise bzr_errors.IncompatibleFormat(branch_format, self._format)
135
135
 
136
 
    get_repository_transport = get_branch_transport
137
 
    get_workingtree_transport = get_branch_transport
 
136
    def get_repository_transport(self, format):
 
137
        if format is None:
 
138
            return self.transport
 
139
        if isinstance(format, LocalGitBzrDirFormat):
 
140
            return self.transport
 
141
        raise bzr_errors.IncompatibleFormat(format, self._format)
 
142
 
 
143
    def get_workingtree_transport(self, format):
 
144
        if format is None:
 
145
            return self.transport
 
146
        if isinstance(format, LocalGitBzrDirFormat):
 
147
            return self.transport
 
148
        raise bzr_errors.IncompatibleFormat(format, self._format)
138
149
 
139
150
    def _open_branch(self, name=None, ignore_fallbacks=None, unsupported=False):
140
151
        """'create' a branch for this dir."""