/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

Set parent path in git-import.

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
        raise NotImplementedError(self._get_client)
138
138
 
139
139
    def _get_path(self):
140
 
        return urlutils.split_segment_parameters_raw(self._path)[0]
 
140
        return self._path.rsplit(",", 1)[0]
141
141
 
142
142
    def get(self, path):
143
143
        raise NoSuchFile(path)
173
173
    _scheme = 'git+ssh'
174
174
 
175
175
    def _get_path(self):
176
 
        path = urlutils.split_segment_parameters_raw(self._path)[0]
 
176
        path = self._path.rsplit(",", 1)[0]
177
177
        if path.startswith("/~/"):
178
178
            return path[3:]
179
179
        return path