/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: 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:
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