/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/git/send.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-07-28 02:47:10 UTC
  • mfrom: (7519.1.1 merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200728024710-a2ylds219f1lsl62
Merge lp:brz/3.1.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
"""Support in "brz send" for git-am style patches."""
22
22
 
23
 
from __future__ import absolute_import
24
 
 
25
23
import time
26
24
from .. import __version__ as brz_version
27
25
from .. import (
175
173
def send_git(branch, revision_id, submit_branch, public_branch, no_patch,
176
174
             no_bundle, message, base_revision_id, local_target_branch=None):
177
175
    if no_patch:
178
 
        raise errors.BzrCommandError(
 
176
        raise errors.CommandError(
179
177
            "no patch not supported for git-am style patches")
180
178
    if no_bundle:
181
 
        raise errors.BzrCommandError(
 
179
        raise errors.CommandError(
182
180
            "no bundle not supported for git-am style patches")
183
181
    return GitMergeDirective.from_objects(
184
182
        branch.repository, revision_id, time.time(),