/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: Jelmer Vernooij
  • Date: 2020-03-22 20:02:36 UTC
  • mto: (7490.7.7 work)
  • mto: This revision was merged to the branch mainline in revision 7501.
  • Revision ID: jelmer@jelmer.uk-20200322200236-fsbl91ktcn6fcbdd
Fix tests.

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
 
23
25
import time
24
26
from .. import __version__ as brz_version
25
27
from .. import (
173
175
def send_git(branch, revision_id, submit_branch, public_branch, no_patch,
174
176
             no_bundle, message, base_revision_id, local_target_branch=None):
175
177
    if no_patch:
176
 
        raise errors.CommandError(
 
178
        raise errors.BzrCommandError(
177
179
            "no patch not supported for git-am style patches")
178
180
    if no_bundle:
179
 
        raise errors.CommandError(
 
181
        raise errors.BzrCommandError(
180
182
            "no bundle not supported for git-am style patches")
181
183
    return GitMergeDirective.from_objects(
182
184
        branch.repository, revision_id, time.time(),