§
    cÌc¬"  ã                   ó–  — d Z ddlZ ej        ¦   «         ZddlZddlZdZdZd„ Z ee¦  «        ZeZ	d 
                     eeedd…         ¦  «        ¦  «        Zd„ Z ej        ¦   «         Z eed	d¦  «        �+e� ej        e¦  «        j        d
k    r eej        ¦  «        Ze€d
Zn ej        e¦  «        j        ZdZdd„Zd„ Zd„ ZdS )aŠ  All of bzr.

Developer documentation is available at
https://www.breezy-vcs.org/developers/.

Some particularly interesting things in breezy are:

* breezy.initialize -- setup the library for use
* breezy.plugin.load_plugins -- load all installed plugins
* breezy.branch.Branch.open -- open a branch
* breezy.workingtree.WorkingTree.open -- open a working tree

We hope you enjoy this library.
é    NzHCopyright 2005-2012 Canonical Ltd.
Copyright 2017-2022 Breezy developers)é   r   é   Úfinalr   c                 óF  — t          | ¦  «        dk    rd| dd…         z  }nd| dd…         z  }t          | ¦  «        dk    r|S | d         }| d         }|dk    r	|dk    rd	}n»|dk    rd
t          |¦  «        z   }n¢|dk    r	|dk    rd}n“|dk    rdt          |¦  «        z   }nz|dv r5| d         dk    rd| dd…         z  }d
|d         z   t          |¦  «        z   }nA|dk    rdt          |¦  «        z   }n(d
                     t          t          | ¦  «        ¦  «        S ||z   S )a�  Turn a version number 2, 3 or 5-tuple into a short string.

    This format matches <http://docs.python.org/dist/meta-data.html>
    and the typical presentation used in Python output.

    This also checks that the version is reasonable: the sub-release must be
    zero for final releases.

    >>> print(_format_version_tuple((1, 0, 0, 'final', 0)))
    1.0.0
    >>> print(_format_version_tuple((1, 2, 0, 'dev', 0)))
    1.2.0.dev
    >>> print(_format_version_tuple((1, 2, 0, 'dev', 1)))
    1.2.0.dev1
    >>> print(_format_version_tuple((1, 1, 1, 'candidate', 2)))
    1.1.1.rc2
    >>> print(_format_version_tuple((2, 1, 0, 'beta', 1)))
    2.1.b1
    >>> print(_format_version_tuple((1, 4, 0)))
    1.4.0
    >>> print(_format_version_tuple((1, 4)))
    1.4
    >>> print(_format_version_tuple((2, 1, 0, 'final', 42)))
    2.1.0.42
    >>> print(_format_version_tuple((1, 4, 0, 'wibble', 0)))
    1.4.0.wibble.0
    r   z%d.%dNz%d.%d.%dr   é   r   r   Ú ú.Údevz.dev)ÚalphaÚbetaÚ	candidatez.rc)ÚlenÚstrÚjoinÚmap)Úversion_infoÚmain_versionÚrelease_typeÚsubÚ
sub_strings        ú1/usr/lib/python3/dist-packages/breezy/__init__.pyÚ_format_version_tupler   9   sd  € õ8 ˆ<ÑÔ˜AÒÐØ ¨b¨q¨bÔ!1Ñ1ˆˆà! L°°!°Ô$4Ñ4ˆÝ
ˆ<ÑÔ˜AÒÐØÐà ”?€LØ
�qŒ/€Cà�wÒÐ 3¨!¢8 8Øˆ
ˆ
Ø	˜Ò	 Ð	 Ø�3˜s™8œ8‘^ˆ
ˆ
Ø	˜Ò	Ð	 3¨!¢8 8Øˆ
ˆ
Ø	˜Ò	Ð	Ø�c #™hœhÑ&ˆ
ˆ
Ø	Ð*Ð	*Ð	*Ø˜Œ?˜aÒÐØ" \°"°1°"Ô%5Ñ5ˆLØ˜<¨œ?Ñ*­S°©X¬XÑ5ˆ
ˆ
Ø	˜Ò	$Ð	$Ø�S ™XœXÑ%ˆ
ˆ
à�xŠx��C Ñ.Ô.Ñ/Ô/Ð/à˜*Ñ$Ð$ó    r	   r   c                 ó2  — 	 ddl }t          |dd¦  «        }|�t|j                             |d¦  «        }|j                             |d¦  «        } |                     |                     |j        ¦  «        |j        ¦  «        d|f¦  «        }n# t          t          f$ r Y dS w xY wt          j        | ¦  «        }  || ¦  «        }d|_        |                     ||j        ¦  «        j        |_        t          j        ¦   «         | k    rt!          d¦  «        ‚| S )	a  Change the Python process global encoding for filesystem names

    The effect is to change how open() and other builtin functions handle
    unicode filenames on posix systems. This should only be done near startup.

    The new encoding string passed to this function must survive until process
    termination, otherwise the interpreter may access uninitialized memory.
    The use of intern() may defer breakage is but is not enough, the string
    object should be secure against module reloading and during teardown.
    r   NÚ	pythonapiÚPy_FileSystemDefaultEncodingÚPy_HasFileSystemDefaultEncodingÚPyUnicode_AsUTF8é   z0Failed to change the filesystem default encoding)ÚctypesÚgetattrÚc_void_pÚin_dllÚc_intÚ
PYFUNCTYPEÚPOINTERÚc_charÚ	py_objectÚImportErrorÚ
ValueErrorÚsysÚinternÚvalueÚcastÚgetfilesystemencodingÚRuntimeError)Únew_encr    r   Úold_ptrÚhas_encÚas_utf8Úenc_ptrs          r   Ú"_patch_filesystem_default_encodingr6   x   s8  € ðØˆˆˆÝ˜F K°Ñ6Ô6ˆ	ØÐ Ø”o×,Ò,¨YØ-KñMô MˆGà”l×)Ò)¨)Ø*KñMô MˆGðA�f×'Ò'Ø—’˜vœ}Ñ-Ô-¨vÔ/?ñAô Aà'¨Ð3ñ5ô 5ˆGøøõ �Ð$ð ð ð ØˆˆðøøøåŒj˜Ñ!Ô!€GØˆg�gÑÔ€GØ€G„MØ—K’K ¨¬Ñ9Ô9Ô?€G„MÝ
Ô Ñ"Ô" gÒ-Ð-ÝÐMÑNÔNÐNØ€Ns   ‚BB ÂB#Â"B#Ú_brz_default_fs_encÚasciiTc                 ó2  — ddl m}m} | rKddl}|pt          j        }|pt          j        }|pt          j        }|j         	                    |||¦  «        }nd}| 
                    ¦   «         }|                     ||¬¦  «        }	|	                     ¦   «          |	S )aR  Set up everything needed for normal use of breezy.

    Most applications that embed breezy, including brz itself, should call
    this function to initialize various subsystems.

    More options may be added in future so callers should use named arguments.

    The object returned by this function can be used as a contex manager
    through the 'with' statement to automatically shut down when the process
    is finished with breezy.  However it's not necessary to
    separately enter the context as well as starting brz: breezy is ready to
    go when this function returns.

    :param setup_ui: If true (default) use a terminal UI; otherwise
        some other ui_factory must be assigned to `breezy.ui.ui_factory` by
        the caller.
    :param stdin, stdout, stderr: If provided, use these for terminal IO;
        otherwise use the files in `sys`.
    :return: A context manager for the use of breezy. The __exit__
        should be called by the caller before exiting their process or
        otherwise stopping use of breezy. Advanced callers can use
        BzrLibraryState directly.
    r   )Úlibrary_stateÚtraceN)Úuir;   )Úbreezyr:   r;   Ú	breezy.uir+   ÚstdinÚstdoutÚstderrr<   Úmake_ui_for_terminalÚDefaultConfigÚBzrLibraryStateÚ_start)
Úsetup_uir?   r@   rA   r:   r;   r=   Ú
ui_factoryÚtracerÚstates
             r   Ú
initializerJ   µ   s¯   € ð0 ,Ð+Ð+Ð+Ð+Ð+Ð+Ð+Øð ØÐÐÐØÐ"�œˆØÐ%�3œ:ˆØÐ%�3œ:ˆØ”Y×3Ò3°E¸6À6ÑJÔJˆ
ˆ
àˆ
Ø× Ò Ñ"Ô"€FØ×)Ò)¨Z¸vÐ)ÑFÔF€Eà	‡L‚L�N„N€NØ€Lr   c                  ó:   — t           €t          ¦   «         S t           S )N)Ú_global_staterJ   © r   r   Úget_global_staterN   Ý   s   € ÝÐÝ‰|Œ|ÐÝÐr   c                  ó2   — dd l } |                      ¦   «         S )Nr   )ÚtestsÚ
test_suite)rP   s    r   rQ   rQ   ã   s   € Ø€L€L€LØ×ÒÑÔÐr   )TNNN)Ú__doc__ÚtimeÚ_start_timeÚcodecsr+   Ú__copyright__r   r   Ú__version__Úversion_stringr   r   r   Ú_core_version_stringr6   r/   Ú_fs_encr!   ÚlookupÚnamer7   rL   rJ   rN   rQ   rM   r   r   ú<module>r]      sf  ðð"ð ð €€€ð ˆdŒi‰kŒk€à €€€Ø 
€
€
€
ð,ð ð %€ð7%ð 7%ð 7%ðt $Ð# LÑ1Ô1€Ø€Ø—x’x   C¨°b°q°bÔ)9Ñ :Ô :Ñ;Ô;Ð ðð ð ðH $ˆ#Ô
#Ñ
%Ô
%€Ø
€7ˆ3Ð% tÑ,Ô,Ð8Øˆ˜=˜6œ=¨Ñ1Ô1Ô6¸'ÒAÐAØ4Ð4°SÔ5LÑMÔMˆØ
€?Ø€G€GàˆfŒm˜GÑ$Ô$Ô)€Gð €ð%ð %ð %ð %ðPð ð ðð ð ð ð r   