/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/tests/test_diff.py

  • Committer: Jelmer Vernooij
  • Date: 2020-07-05 12:50:01 UTC
  • mfrom: (7490.40.46 work)
  • mto: (7490.40.48 work)
  • mto: This revision was merged to the branch mainline in revision 7519.
  • Revision ID: jelmer@jelmer.uk-20200705125001-7s3vo0p55szbbws7
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
 
import contextlib
18
 
from io import BytesIO
19
17
import os
20
18
import re
21
19
import subprocess
23
21
import tempfile
24
22
 
25
23
from .. import (
 
24
    cleanup,
26
25
    diff,
27
26
    errors,
28
27
    osutils,
31
30
    revisiontree,
32
31
    tests,
33
32
    )
 
33
from ..sixish import (
 
34
    BytesIO,
 
35
    unichr,
 
36
    )
34
37
from ..tests import (
35
38
    features,
36
39
    EncodingAdapter,
1031
1034
 
1032
1035
    def call_gtabtd(self, path_list, revision_specs, old_url, new_url):
1033
1036
        """Call get_trees_and_branches_to_diff_locked."""
1034
 
        exit_stack = contextlib.ExitStack()
 
1037
        exit_stack = cleanup.ExitStack()
1035
1038
        self.addCleanup(exit_stack.close)
1036
1039
        return diff.get_trees_and_branches_to_diff_locked(
1037
1040
            path_list, revision_specs, old_url, new_url, exit_stack)