/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/github.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:
219
219
 
220
220
 
221
221
def parse_github_branch_url(branch):
222
 
    url = urlutils.split_segment_parameters(branch.user_url)[0]
 
222
    url = urlutils.strip_segment_parameters(branch.user_url)
223
223
    owner, repo_name = parse_github_url(url)
224
224
    return owner, repo_name, branch.name
225
225