/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: Jelmer Vernooij
  • Date: 2020-05-24 00:39:50 UTC
  • mto: This revision was merged to the branch mainline in revision 7504.
  • Revision ID: jelmer@jelmer.uk-20200524003950-bbc545r76vc5yajg
Add github action.

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',