/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-03-22 01:35:14 UTC
  • mfrom: (7490.7.6 work)
  • mto: This revision was merged to the branch mainline in revision 7499.
  • Revision ID: jelmer@jelmer.uk-20200322013514-7vw1ntwho04rcuj3
merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
from __future__ import absolute_import
18
 
 
19
17
import base64
 
18
import contextlib
 
19
from io import BytesIO
20
20
import re
21
21
 
22
22
from . import lazy_import
23
23
lazy_import.lazy_import(globals(), """
24
24
from breezy import (
25
25
    branch as _mod_branch,
26
 
    cleanup,
27
26
    diff,
28
27
    email_message,
29
28
    gpg,
44
43
from . import (
45
44
    errors,
46
45
    )
47
 
from .sixish import (
48
 
    BytesIO,
49
 
    )
50
46
 
51
47
 
52
48
class MergeRequestBodyParams(object):
599
595
        If the message is not supplied, the message from revision_id will be
600
596
        used for the commit.
601
597
        """
602
 
        with cleanup.ExitStack() as exit_stack:
 
598
        with contextlib.ExitStack() as exit_stack:
603
599
            exit_stack.enter_context(repository.lock_write())
604
600
            t_revision_id = revision_id
605
601
            if revision_id == b'null:':