auto
      ˆ¾‘äÇò 8à_�¶H^y¿çÀƒh¹ÅÃÂ      auto
      	ˆ¾‘äÇò 8à_�¶H%+ßÏÀƒh¹ÅÃÂ      	on
  (   ˆÁ�þDVnRÉÜcüÿÀ515Å_ˆI|¥�+y,ÄÃ     /*
Copyright Rene Rivera 2011-2015
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/

#if !defined(BOOST_PREDEF_LANGUAGE_H) || defined(BOOST_PREDEF_INTERNAL_GENERATE_TESTS)
#ifndef BOOST_PREDEF_LANGUAGE_H
#define BOOST_PREDEF_LANGUAGE_H
#endif

#include <boost/predef/language/stdc.h>
#include <boost/predef/language/stdcpp.h>
#include <boost/predef/language/objc.h>
#include <boost/predef/language/cuda.h>

#endif
     ˆÈÇÆ380ÅÄÃ |    ‹      •’MOÃ0†ïü
“7jãi´“˜4¶i+BqÈš´�èš*1Œñëi—!@!Nùz^Ç¯m¾ŸN“ì~6„ëìf³Û«ñ(vˆxw’ ¦YÑÑ1âpÂ€UDíâz½ŽÖ'‘u%fs¬hUÐ“39EŠ{¼¿{À+-U·'Cµ£FéW° }&o” ¦ýÆ>RÕép'äK«6}¼ã?µ²ýH.·!ú­œ*x‘µ)›˜‘m™àfU‚wyÌÐä¶ñ¸¬eó•¦` kŠÙÃ(™>vRÕ«—P9]Äì"‰'çÓø’‰‰\iŽògæ&0cé	VV™Âhõ+¼ðÂ¼ý0Lª}îLKÆ6Ÿ(v¿ZÍmí[Ùy=íTî+õW5dþ­³Ëùp’¥£y(‰êC|f÷½LÌ¤ÓAjœÎÉºÍ.Ñ :h–¾=ÿ8Â.gÊŠ˜ 8„Éÿ8Ä]ï9n§†c˜ÂwÊ	®îè    5   ˆl–ßi~” T¾R( 	ÅÍÁãN©‹Fÿ�þB gã#„iÁ7/óÂƒh¹ÇÅÄ      auto
  B   ˆl–Ü4ý( ©”u( 	•íÀà™S�ÿ�þY	_Y¹DGÃ Â�ÏÃ„�ußÈ_ŠI|¥�+Wé3ž¯ÇÆ 1é    # Copyright (C) 2005, 2006, 2008-2011 Canonical Ltd
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

"""brz upgrade logic."""

from . import (
    errors,
    trace,
    ui,
    urlutils,
    )
from .controldir import (
    ControlDir,
    format_registry,
    )
from .i18n import gettext
from .bzr.remote import RemoteBzrDir


class Convert:

    def __init__(self, url=None, format=None, control_dir=None):
        """Convert a Bazaar control directory to a given format.

        Either the url or control_dir parameter must be given.

        :param url: the URL of the control directory or None if the
          control_dir is explicitly given instead
        :param format: the format to convert to or None for the default
        :param control_dir: the control directory or None if it is
          specified via the URL parameter instead
        """
        self.format = format
        # XXX: Change to cleanup
        warning_id = 'cross_format_fetch'
        saved_warning = warning_id in ui.ui_factory.suppressed_warnings
        if url is None and control_dir is None:
            raise AssertionError(
                "either the url or control_dir parameter must be set.")
        if control_dir is not None:
            self.controldir = control_dir
        else:
            self.controldir = ControlDir.open_unsupported(url)
        if isinstance(self.controldir, RemoteBzrDir):
            self.controldir._ensure_real()
            self.controldir = self.controldir._real_bzrdir
        if self.controldir.root_transport.is_readonly():
            raise errors.UpgradeReadonly
        self.transport = self.controldir.root_transport
        ui.ui_factory.suppressed_warnings.add(warning_id)
        try:
            self.convert()
        finally:
            if not saved_warning:
                ui.ui_factory.suppressed_warnings.remove(warning_id)

    def convert(self):
        try:
            branch = self.controldir.open_branch()
            if branch.user_url != self.controldir.user_url:
                ui.ui_factory.note(gettext(
                    'This is a checkout. The branch (%s) needs to be upgraded'
                    ' separately.') % (u