/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/plugins/bisect/cmds.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2017-06-07 18:37:11 UTC
  • mfrom: (6667.2.1 trunk)
  • Revision ID: breezy.the.bot@gmail.com-20170607183711-oz0x9xqqh9x8jgas
Use ControlDir rather than BzrDir, remove unused imports.

Merged from https://code.launchpad.net/~jelmer/brz/small-fixes/+merge/325196

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
import sys
22
22
import os
23
 
from ...bzrdir import BzrDir
 
23
from ...controldir import ControlDir
24
24
from ... import revision as _mod_revision
25
25
from ...commands import Command
26
26
from ...errors import BzrCommandError
36
36
 
37
37
    def __init__(self, filename = bisect_rev_path):
38
38
        self._filename = filename
39
 
        self._bzrdir = BzrDir.open_containing(".")[0]
 
39
        self._bzrdir = ControlDir.open_containing(".")[0]
40
40
        self._bzrbranch = self._bzrdir.open_branch()
41
41
        if os.path.exists(filename):
42
42
            revid_file = open(filename)
132
132
    def _load_bzr_tree(self):
133
133
        """Load bzr information."""
134
134
        if not self._bzrdir:
135
 
            self._bzrdir = BzrDir.open_containing('.')[0]
 
135
            self._bzrdir = ControlDir.open_containing('.')[0]
136
136
            self._bzrbranch = self._bzrdir.open_branch()
137
137
 
138
138
    def _find_range_and_middle(self, branch_last_rev = None):