/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

Strip segment parameters where necessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
        raise NotImplementedError(self._get_client)
137
137
 
138
138
    def _get_path(self):
139
 
        return self._path
 
139
        return urlutils.split_segment_parameters_raw(self._path)[0]
140
140
 
141
141
    def fetch_pack(self, determine_wants, graph_walker, pack_data, progress=None):
142
142
        if progress is None:
191
191
    _scheme = 'git+ssh'
192
192
 
193
193
    def _get_path(self):
194
 
        if self._path.startswith("/~/"):
195
 
            return self._path[3:]
196
 
        return self._path
 
194
        path = urlutils.split_segment_parameters_raw(self._path)[0]
 
195
        if path.startswith("/~/"):
 
196
            return path[3:]
 
197
        return path
197
198
 
198
199
    def _get_client(self, thin_packs):
199
200
        if self._client is not None: