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

  • Committer: Jelmer Vernooij
  • Date: 2020-01-12 13:56:10 UTC
  • mto: This revision was merged to the branch mainline in revision 7443.
  • Revision ID: jelmer@jelmer.uk-20200112135610-0a9bct6x4cw7he6y
Add strip_segment_parameters function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
        # breezy.git, since it's called for every repository that's
168
168
        # accessed over HTTP, whether it's Git, Bzr or something else.
169
169
        # Importing Dulwich and the other support code adds unnecessray slowdowns.
170
 
        base_url, _ = urlutils.split_segment_parameters(
171
 
            transport.external_url())
 
170
        base_url = urlutils.strip_segment_parameters(transport.external_url())
172
171
        url = urlutils.URL.from_string(base_url)
173
172
        url.user = url.quoted_user = None
174
173
        url.password = url.quoted_password = None