1
  <   ˆl–Ým_J¥/”Š�rà¸Ø”Å£“þ[rU›, n½  -7³WüÿÎÃÂÍ536ÁÀÊ     ‹      Ý”IOQ„ïùŸæŒlÀ1D9¸Ú+xÁØ`àfìñ6ã›ˆÿž÷à‰S)Qr‰4‡.uw½®êÖL“þzŒ·³d±Z~ý–;ñ_”ŽN¢SòÈ(Ú‹²É¡èeO.�r¸Nƒsš\Ð¢Í%Wt¸æ†[ºÜ3`Èˆ1÷<0aÊ#	3æô(FãŒ*%jŽÕë>)ÒpÈ>“å˜
Þ†y��÷>üKV¬ÙðÄ–Ïä„\�È‹‚(Š’(‹Š8g¢*j¢.â\4Å…h‰¶¸Wb!:b)®Å�¸]q'z¢/b1C3cq/ÄDLYé÷=a-6"+Ž½ã~ŸÅÜ;žÿŸ¼ùScr†Ì™Q×ù3áf<9}FÁ(%c+E"vN«Q1žÅ¾H‰´˜‰§Þµ{öâ/¬öoü;c;ýÜêFÃ¼ôCWhÎ€pVEªFÍ«-/Þ²¦qä¦2ZFÛ¸4®ŒŽqmÜ·F×¸3zFßˆ��14FÆØ¸ÿ�§Ž¿øüc• æÎ·Õ‰1uÓ¹¹^ß�s_uªòä:èmÁý &ñÜÕ�*»¸¶ÖsqÝÅÙ·‡!³ðÜçï§³4VÆÚØ¸ky½�­±s"Œ}#e^AÚ80}c3°ì<åE`9ò™VÈdð¿ÆŒû‘E�áðS{'‹.›q?N$‹iw½|ùðË=ªo    D   ˆl–Ðz¾”ªa,je@†àCq–”Å£�þZrB‘fåldxqºÓoùÏ…àÍÎ_ŠI|¥�+Wé3ž¯ÂÌ ?÷     # Copyright (C) 2005-2012 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

"""builtin brz commands"""

import errno
import os
import sys

import breezy.bzr
import breezy.git

from . import (
    controldir,
    errors,
    transport,
    )

from . import lazy_import
lazy_import.lazy_import(globals(), """
import time

import breezy
from breezy import (
    branch as _mod_branch,
    bugtracker,
    directory_service,
    delta,
    config as _mod_config,
    globbing,
    gpg,
    hooks,
    lazy_regex,
    log,
    merge as _mod_merge,
    mergeable as _mod_mergeable,
    merge_directive,
    osutils,
    reconfigure,
    rename_map,
    revision as _mod_revision,
    symbol_versioning,
    timestamp,
    tree as _mod_tree,
    ui,
    urlutils,
    views,
    )
from breezy.branch import Branch
from breezy.transport import memory
from breezy.smtp_connection import SMTPConnection
from breezy.workingtree import WorkingTree
from breezy.i18n import gettext, ngettext
""")

from .commands import (
    Command,
    builtin_command_registry,
    display_command,
    )
from .option import (
    ListOption,
    Option,
    RegistryOption,
    custom_help,
    _parse_revision_str,
    )
from .revisionspec import (
    RevisionSpec,
    RevisionInfo,
    )
from .trace import mutter, note, warning, is_quiet, get_verbosity_level


def _get_branch_location(control_dir, possible_transports=None):
    """Return location of branch for this control dir."""
    try:
        target = control_dir.get_branch_reference()
    except errors.NotBranchError:
        return control_dir.root_transport.base
    if target is not None:
        return target
    this_branch = control_dir.open_branch(
        possible_transports=possible_transports)
    # This may be a heavy checkout, where we want the master branch
    master_location = this_branch.get_bound_location()
    if master_location is not None:
        return master_location
    # If not, use a local sibling
    return this_branch.base


def _is_colocated(control_dir, possible_transports=None):
    """Check if the branch in control_dir is colocated.

    :param control_dir: Control directory
    :return: Tuple with boolean indicating whether the branch is colocated
        and the full URL to the actual branch
    """
    # This path is meant to be relative to the existing branch
    this_url = _get_branch_location(
        control_dir, possible_transports=possible_transports)
    # Perhaps the target control dir supports colocated branches?
    try:
        root = controldir.ControlDir.open(
            this_url, possible_transports=possible_transports)
    except errors.NotBranchError:
        return (False, this_url)
    else:
        try:
     