auto
     ˆÈÇÆ463Å¿Ã Ï    ‹      ¥“Qo›0…ßû+îü°7¸!É6­5LDZ¤4A)Ó4M{pÀ«ÄF¶mýLÈÔtJ¶U{Ûçžs/¦¯’Uœ}Mgð)»Y@úùãbñ¿LbÄ$K†ƒ©?
gK¤²¶¹DìºÎï&¾Ò%fk¬ì®ž¢±ZäÖ/lA¢ÚïE@+Î
÷j…­y4—¿µT­5¢àSl�FS1Í±©ì¦­[Á5.˜,[VrÌkf7§‹aºQÅC_/øom'±7Ê6ûý«Ž¨­à«E)CbUC"*v%�‡E®¤ÁMÍä�_Š-VÛ�|›Ç«ïŽC[õ_G”A¥ù6$âpyµ
¯I´d;N‘�fnfÁŒ…�*z·ÅYøv€oÅãyÁd`nr-+”|BÑE<Žš«Ú4Ìe}ãTú˜�âoÝ`ù³f¤×ëÙ2Kæë¡%E/ñäîe“"Qê i!šçVé‡C�AõµÜ˜æê×6µ(+K" N’/ÈÖÊ;©:yÏµîd0.½{Ïrc}‡DÏ–Ç¦s9ï½`ì�—“· gÀ`òîqþq xøÕ)î/ÅáÒþÖD4       ˆÈÇÆ465Å¿Ã Ñ    ‹      ¥“]oÓ0†ï÷+¾à.9ÍÚÚœ ÒD¢R¿Ô!„¸pc7¶–Æ‘íÒm¿§)jA-0qå¯Ç¯ß÷Ø¦¯Òù(ÿ²Èàc>�ÀâÓ‡Éx$@üÜ!¦yÚ-Â^„˜Íé\s‹¸ÛíÂ]?Ô¦Ä|‰ÒmªZgTáBî8I®h;—\•‚qßuÊU"×\<‚^ê­³Š‹n­A+™Èu�•Z±†R\ÍƒRhÕ xd›¦–b§âuñ LWš?µçEÿ­í%öFÙjDÛ5	u¾³J•uLœnHBÕ¦kŠ˜ *tmqU±ú!,Õš «\L¾ŽGóožC'ÛÝ	e �XÇäý(žÝÍã”$3¶Ùyfê™!I&Ì:ð6ÕZ	~¾ïà{õ|Y0í˜TØÂ¨Æ)]QôO£º²óYo|iN©á«+~)Æb¸Ìfy:^v%á­ÄÑÝ‹nŠ$¿^;H•…Óæé�£}]¯ls÷s—F•Ò‘ €³ä¢më‡ZïêÓt¾rgs-³a:ÍÂFz�cÿÔîoþ®{ÑMÐë½7½»ô.€o{Ñ‚üãMâá�SÜÿŠÝoý.à–.        ˆ¾‘äÇò 8à^nVÝ(v?çÁƒh¹Æ¿Ã      N
     ˆÈÇÆ465Å¿Ã Ñ    ‹      ½”_oÓ0Åß÷).~à-¹M—1ms‚FR‰J][uA!„Ü8M¬¥v°]ÂøôäOÇj“/‰íœ{r~7±é‹x%–x›ÜÌ`ùîÍlqßŸFˆq÷|wä!NæHamu‰X×µ[ŸºJç˜¬°°ÛÒGcµH­Ë-'á	m×Â EÆxsj…-³p*yöÔPí¬<óqg4š‚é«¢:w}§ÊÍ—»+Å¾¬1Â½]+~ß¾À{¾YSÓEaëÎ³ê�Ú¾²Rä2 VU$¤b›ƒÑi@P¤J\—LÞ¹¹Ø`¥ÈÇi´øÔèÐmuH:ÛäuÌ¯Á5	çl›Qd‡57½fÆŒ…­âb#2~T|Û‹oÅ÷ã†q¯‰3“jQY¡ä£Ä!jªJS±†õ¬!(ôPÕKøSÝ`é/ÍX^¯&ó$ž®ú–ðÖâ1Ý“Ÿ†„ËfMZˆ…ÎR«ôý>{oôR®Muõ0…}2-òÂ’À�ƒÊgàìä�Tµ5Ý:ÈÒv…$ü9†ý-Ýx4~åxž3�wv9¾ 8†q>ú¯\}¢§ÿÇÿÎ_þŠ¸ß¤»ýN±?P~ Ã#G©³    B   ˆl–Ü4ý( ©”u( 	•íÀà™S�ÿ�þ^uÖ–nQðÈ0„¤óÂ„e§sÇ_ŠI|¥�+Wé3ž¯ÁÅ ?÷     # Copyright (C) 2006-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

"""Infrastructure for server-side request handlers.

Interesting module attributes:
    * The request_handlers registry maps verb names to SmartServerRequest
      classes.
    * The jail_info threading.local() object is used to prevent accidental
      opening of BzrDirs outside of the backing transport, or any other
      transports placed in jail_info.transports.  The jail_info is reset on
      every call into a request handler (which can happen an arbitrary number
      of times during a request).
"""

# XXX: The class names are a little confusing: the protocol will instantiate a
# SmartServerRequestHandler, whose dispatch_command method creates an instance
# of a SmartServerRequest subclass.


import threading
from _thread import get_ident

from ... import (
    branch as _mod_branch,
    debug,
    errors,
    osutils,
    registry,
    revision,
    trace,
    transport as _mod_transport,
    urlutils,
    )
from ...lazy_import import lazy_import
lazy_import(globals(), """
from breezy.bzr import bzrdir
from breezy.bzr.bundle import serializer

import tempfile
""")


jail_info = threading.local()
jail_info.transports = None


class DisabledMethod(errors.InternalBzrError):

    _fmt = "The smart server method '%(class_name)s' is disabled."

    def __init__(self, class_name):
        errors.BzrError.__init__(self)
        self.class_name = class_name


def _install_hook():
    bzrdir.BzrDir.hooks.install_named_hook(
        'pre_open', _pre_open_hook, 'checking server jail')


def _pre_open_hook(transport):
    allowed_transports = getattr(jail_info, 'transports', None)
    if allowed_transports is None:
        return
    abspath = transport.base
    for allowed_transport in allowed_tran