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

  • Committer: Jelmer Vernooij
  • Date: 2020-02-07 02:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200207021430-m49iq3x4x8xlib6x
Drop python2 support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
from __future__ import absolute_import
18
18
 
 
19
import contextlib
19
20
import patiencediff
20
21
import shutil
21
22
import sys
25
26
 
26
27
from . import (
27
28
    builtins,
28
 
    cleanup,
29
29
    delta,
30
30
    diff,
31
31
    errors,
458
458
 
459
459
    def run(self):
460
460
        """Perform the unshelving operation."""
461
 
        with cleanup.ExitStack() as exit_stack:
 
461
        with contextlib.ExitStack() as exit_stack:
462
462
            exit_stack.enter_context(self.tree.lock_tree_write())
463
463
            if self.read_shelf:
464
464
                trace.note(gettext('Using changes with id "%d".') %