/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/merge_directive.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-06-01 21:57:00 UTC
  • mfrom: (7490.39.3 move-launchpad)
  • Revision ID: breezy.the.bot@gmail.com-20200601215700-joxuzo6w172gq74v
Move launchpad hoster support to the launchpad plugin.

Merged from https://code.launchpad.net/~jelmer/brz/move-launchpad/+merge/384931

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
    )
46
46
 
47
47
 
48
 
class IllegalMergeDirectivePayload(errors.BzrError):
49
 
    """A merge directive contained something other than a patch or bundle"""
50
 
 
51
 
    _fmt = "Bad merge directive payload %(start)r"
52
 
 
53
 
    def __init__(self, start):
54
 
        errors.BzrError(self)
55
 
        self.start = start
56
 
 
57
 
 
58
48
class MergeRequestBodyParams(object):
59
49
    """Parameter object for the merge_request_body hook."""
60
50
 
552
542
                if start.startswith(b'# Begin bundle'):
553
543
                    bundle = b''.join(line_iter)
554
544
                else:
555
 
                    raise IllegalMergeDirectivePayload(start)
 
545
                    raise errors.IllegalMergeDirectivePayload(start)
556
546
        time, timezone = timestamp.parse_patch_date(stanza.get('timestamp'))
557
547
        kwargs = {}
558
548
        for key in ('revision_id', 'testament_sha1', 'target_branch',