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

  • Committer: Jelmer Vernooij
  • Date: 2018-04-02 14:42:37 UTC
  • mto: (0.200.1913 work)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180402144237-ck5ntbtw4j4rdyvj
Fix some tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
def git_url_to_bzr_url(location):
30
30
    url = URL.from_string(location)
31
 
    if url.scheme not in KNOWN_GIT_SCHEMES:
 
31
    if url.scheme not in KNOWN_GIT_SCHEMES and not url.scheme.startswith('chroot-'):
32
32
        try:
33
33
            (username, host, path) = parse_rsync_url(location)
34
34
        except ValueError:
35
 
            url = URL(
36
 
                scheme='file', quoted_user=None, quoted_password=None,
37
 
                quoted_host='', port=None,
38
 
                quoted_path=quote(location, safe="/~"))
 
35
            return location
39
36
        else:
40
37
            url = URL(
41
38
                    scheme='git+ssh',