/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/upstream_import.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:
27
27
import zipfile
28
28
 
29
29
from . import generate_ids, urlutils
30
 
from .bzrdir import BzrDir
 
30
from .controldir import ControlDir
31
31
from .errors import (BzrError, NoSuchFile, BzrCommandError, NotBranchError)
32
32
from .osutils import (pathjoin, isdir, file_iterator, basename,
33
33
                      file_kind, splitpath)
310
310
        except NotBranchError:
311
311
            if not os.path.exists(tree_directory):
312
312
                os.mkdir(tree_directory)
313
 
            branch = BzrDir.create_branch_convenience(tree_directory)
 
313
            branch = ControlDir.create_branch_convenience(tree_directory)
314
314
            tree = branch.bzrdir.open_workingtree()
315
315
    else:
316
316
        tree = WorkingTree.open_containing('.')[0]