/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/propose/gitlabs.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:
150
150
 
151
151
 
152
152
def parse_gitlab_branch_url(branch):
153
 
    url = urlutils.split_segment_parameters(branch.user_url)[0]
 
153
    url = urlutils.strip_segment_parameters(branch.user_url)
154
154
    host, path = parse_gitlab_url(url)
155
155
    return host, path, branch.name
156
156