/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-01-12 15:16:27 UTC
  • mfrom: (7441.1.2 strip-segment-parameters)
  • Revision ID: breezy.the.bot@gmail.com-20200112151627-meh6feoulbz777ns
Add strip_segment_parameters function.

Merged from https://code.launchpad.net/~jelmer/brz/strip-segment-parameters/+merge/377479

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