/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/plugins/hg/__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:
159
159
        if scheme not in klass._supported_schemes:
160
160
            raise errors.NotBranchError(path=transport.base)
161
161
        from breezy import urlutils
162
 
        external_url = urlutils.split_segment_parameters(external_url)[0]
 
162
        external_url = urlutils.strip_segment_parameters(external_url)
163
163
        # Explicitly check for .hg directories here, so we avoid
164
164
        # loading foreign branches through Mercurial.
165
165
        if (external_url.startswith("http:") or