~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/upgrade.py

  • Committer: Patch Queue Manager
  • Date: 2011-10-06 08:34:03 UTC
  • mfrom: (6191.2.1 843900-url-nameerror)
  • Revision ID: pqm@pqm.ubuntu.com-20111006083403-jnsw0exlirg01aed
(mbp) error message without traceback on invalid ubuntu/debian url (bug
 843900) (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    ui,
24
24
    urlutils,
25
25
    )
26
 
from bzrlib.controldir import (
27
 
    ControlDir,
 
26
from bzrlib.bzrdir import (
 
27
    BzrDir,
28
28
    format_registry,
29
29
    )
30
30
from bzrlib.i18n import gettext
54
54
        if control_dir is not None:
55
55
            self.bzrdir = control_dir
56
56
        else:
57
 
            self.bzrdir = ControlDir.open_unsupported(url)
 
57
            self.bzrdir = BzrDir.open_unsupported(url)
58
58
        if isinstance(self.bzrdir, RemoteBzrDir):
59
59
            self.bzrdir._ensure_real()
60
60
            self.bzrdir = self.bzrdir._real_bzrdir
139
139
    :param dry_run: show what would happen but don't actually do any upgrades
140
140
    :return: the list of exceptions encountered
141
141
    """
142
 
    control_dirs = [ControlDir.open_unsupported(url)]
 
142
    control_dirs = [BzrDir.open_unsupported(url)]
143
143
    attempted, succeeded, exceptions = smart_upgrade(control_dirs,
144
144
        format, clean_up=clean_up, dry_run=dry_run)
145
145
    if len(attempted) > 1: