/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/workingtree.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:
29
29
 
30
30
from __future__ import absolute_import
31
31
 
 
32
import contextlib
32
33
import errno
33
34
import os
34
35
import sys
41
42
import stat
42
43
 
43
44
from breezy import (
44
 
    cleanup,
45
45
    conflicts as _mod_conflicts,
46
46
    filters as _mod_filters,
47
47
    merge,
1002
1002
    def revert(self, filenames=None, old_tree=None, backups=True,
1003
1003
               pb=None, report_changes=False):
1004
1004
        from .conflicts import resolve
1005
 
        with cleanup.ExitStack() as exit_stack:
 
1005
        with contextlib.ExitStack() as exit_stack:
1006
1006
            exit_stack.enter_context(self.lock_tree_write())
1007
1007
            if old_tree is None:
1008
1008
                basis_tree = self.basis_tree()