/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

Add a tag_selector argument to push/pull/sprout functions.

Merged from https://code.launchpad.net/~jelmer/brz/tag-selector/+merge/379435

Show diffs side-by-side

added added

removed removed

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