/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-02-21 04:40:09 UTC
  • mfrom: (7494.1.1 trunk-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200221044009-cijpllwtz5ql9tar
Merge lp:brz/3.1.

Merged from https://code.launchpad.net/~jelmer/brz/trunk-3.1/+merge/379600

Show diffs side-by-side

added added

removed removed

Lines of Context:
413
413
 
414
414
    def publish_derived(self, local_branch, base_branch, name, project=None,
415
415
                        owner=None, revision_id=None, overwrite=False,
416
 
                        allow_lossy=True):
 
416
                        allow_lossy=True, tag_selector=None):
417
417
        (host, base_project, base_branch_name) = parse_gitlab_branch_url(base_branch)
418
418
        if owner is None:
419
419
            owner = self._get_logged_in_username()
428
428
        try:
429
429
            push_result = remote_dir.push_branch(
430
430
                local_branch, revision_id=revision_id, overwrite=overwrite,
431
 
                name=name)
 
431
                name=name, tag_selector=tag_selector)
432
432
        except errors.NoRoundtrippingSupport:
433
433
            if not allow_lossy:
434
434
                raise
435
435
            push_result = remote_dir.push_branch(
436
436
                local_branch, revision_id=revision_id, overwrite=overwrite,
437
 
                name=name, lossy=True)
 
437
                name=name, lossy=True, tag_selector=tag_selector)
438
438
        public_url = gitlab_url_to_bzr_url(
439
439
            target_project['http_url_to_repo'], name)
440
440
        return push_result.target_branch, public_url