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

  • Committer: Gustav Hartvigsson
  • Date: 2021-01-09 21:36:27 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210109213627-h1xwcutzy9m7a99b
Added 'Case Preserving Working Tree Use Cases' from Canonical Wiki

* Addod a page from the Canonical Bazaar wiki
  with information on the scmeatics of case
  perserving filesystems an a case insensitive
  filesystem works.
  
  * Needs re-work, but this will do as it is the
    same inforamoton as what was on the linked
    page in the currint documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
from dulwich.client import parse_rsync_url
26
26
 
27
27
 
28
 
KNOWN_GIT_SCHEMES = ['git+ssh', 'git', 'http', 'https', 'ftp']
 
28
KNOWN_GIT_SCHEMES = ['git+ssh', 'git', 'http', 'https', 'ftp', 'ssh']
 
29
SCHEME_REPLACEMENT = {
 
30
    'ssh': 'git+ssh',
 
31
    }
29
32
 
30
33
 
31
34
def git_url_to_bzr_url(location, branch=None, ref=None):
47
50
                port=None,
48
51
                quoted_path=urlutils.quote(path, safe="/~"))
49
52
        location = str(url)
 
53
    elif url.scheme in SCHEME_REPLACEMENT:
 
54
        url.scheme = SCHEME_REPLACEMENT[url.scheme]
 
55
        location = str(url)
50
56
    if ref == b'HEAD':
51
57
        ref = branch = None
52
58
    if ref: