/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: Jelmer Vernooij
  • Date: 2020-02-18 03:11:01 UTC
  • mto: (7490.3.4 work)
  • mto: This revision was merged to the branch mainline in revision 7495.
  • Revision ID: jelmer@jelmer.uk-20200218031101-trloo2n5k2n01q9r
Plumb through tag_selector.

Show diffs side-by-side

added added

removed removed

Lines of Context:
378
378
 
379
379
    def publish_derived(self, local_branch, base_branch, name, project=None,
380
380
                        owner=None, revision_id=None, overwrite=False,
381
 
                        allow_lossy=True):
 
381
                        allow_lossy=True, tag_selector=None):
382
382
        base_owner, base_project, base_branch_name = parse_github_branch_url(base_branch)
383
383
        base_repo = self._get_repo(base_owner, base_project)
384
384
        if owner is None:
398
398
        try:
399
399
            push_result = remote_dir.push_branch(
400
400
                local_branch, revision_id=revision_id, overwrite=overwrite,
401
 
                name=name)
 
401
                name=name, tag_selector=tag_selector)
402
402
        except errors.NoRoundtrippingSupport:
403
403
            if not allow_lossy:
404
404
                raise
405
405
            push_result = remote_dir.push_branch(
406
406
                local_branch, revision_id=revision_id,
407
 
                overwrite=overwrite, name=name, lossy=True)
 
407
                overwrite=overwrite, name=name, lossy=True,
 
408
                tag_selector=tag_selector)
408
409
        return push_result.target_branch, github_url_to_bzr_url(
409
410
            remote_repo['html_url'], name)
410
411