§
    cÌc–   ã                   ój   — d Z ddlmZmZmZmZmZ ddl	m
Z
mZ ddlmZ  G d„ d¦  «        Z	 	 	 d
d	„ZdS )zUI helper for the push command.é   )ÚbranchÚ
controldirÚerrorsÚrevisionÚ	transport)ÚnoteÚwarning)Úgettextc                   ó   — e Zd ZdZd„ Zd„ ZdS )Ú
PushResulta%  Result of a push operation.

    :ivar branch_push_result: Result of a push between branches
    :ivar target_branch: The target branch
    :ivar stacked_on: URL of the branch on which the result is stacked
    :ivar workingtree_updated: Whether or not the target workingtree was updated.
    c                 ó>   — d | _         d | _        d | _        d | _        d S )N)Úbranch_push_resultÚ
stacked_onÚworkingtree_updatedÚtarget_branch)Úselfs    ú-/usr/lib/python3/dist-packages/breezy/push.pyÚ__init__zPushResult.__init__*   s'   € Ø"&ˆÔØˆŒØ#'ˆÔ Ø!ˆÔÐÐó    c                 óÞ   — | j         €K| j        �&t          t          d¦  «        | j        z  ¦  «         dS t          t          d¦  «        ¦  «         dS | j                              |¦  «         dS )z1Write a human-readable description of the result.Nz+Created new stacked branch referring to %s.zCreated new branch.)r   r   r   r
   Úreport)r   Úto_files     r   r   zPushResult.report0   s€   € àÔ"Ð*ØŒÐ*Ý•WÐJÑKÔKØ”_ñ%ñ &ô &ð &ð &ð &õ •WÐ2Ñ3Ô3Ñ4Ô4Ð4Ð4Ð4àÔ#×*Ò*¨7Ñ3Ô3Ð3Ð3Ð3r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   © r   r   r   r   !   s<   € € € € € ðð ð"ð "ð "ð	4ð 	4ð 	4ð 	4ð 	4r   r   FNc                 óÄ  — t          j        |d¬¦  «        }	 t          j                             |¦  «        }n# t
          j        $ r d}Y nw xY w|�€ 	 |                      |||||	|
¬¦  «        }nÔ# t
          j        $ r& t          j	        t          d¦  «        |fz  ¦  «        ‚t           j        $ r( |	s$t          j	        t          d¦  «        |z  ¦  «        ‚‚ t           j        $ r( |s$t          j	        t          d¦  «        |z  ¦  «        ‚‚ t
          j        $ r% t          j	        t          d¦  «        |z  ¦  «        ‚w xY wt          ¦   «         }	 |                     ¦   «         |_        n3# t"          j        t
          j        t
          j        f$ r
 d|_        Y nw xY w||_        t,          j        |_        d	|_        |s|€.|                      ¦   «         €|                      |j        ¦  «         �n|�t;          d
¦  «         	 |                     | |||||¬¦  «        }n°# t
          j        $ r" t          j	        t          d¦  «        ¦  «        ‚t
          j         $ r=}t          j	        t          d¦  «        |j        j!        j"        j#        z  ¦  «        ‚d}~wt
          j$        $ r% t          j	        t          d¦  «        |z  ¦  «        ‚w xY w|j%        du rt;          d|j        j        z  ¦  «         | &                    |¦  «         |rT|j        }| '                    ¦   «         5  ddl(m)}  ||||j        |j        ¦  «         ddd¦  «         dS # 1 swxY w Y   dS dS )aš  Push a branch to a location.

    :param br_from: the source branch
    :param revision_id: the revision-id to push up to
    :param location: the url of the destination
    :param to_file: the output stream
    :param verbose: if True, display more output than normal
    :param overwrite: list of things to overwrite ("history", "tags")
        or boolean indicating for everything
    :param remember: if True, store the location as the push location for
        the source branch
    :param stacked_on: the url of the branch, if any, to stack on;
        if set, only the revisions not in that branch are pushed
    :param create_prefix: if True, create the necessary parent directories
        at the destination if they don't already exist
    :param use_existing_dir: if True, proceed even if the destination
        directory exists without a current control directory in it
    :param lossy: Allow lossy push
    Úwrite)ÚpurposeN)Úrevision_idr   Úcreate_prefixÚuse_existing_dirÚno_treezKTarget directory %s already contains a .bzr directory, but it is not valid.zwTarget directory %s already exists, but does not have a .bzr directory. Supply --use-existing-dir to push there anyway.zoParent directory of %s does not exist.
You may supply --create-prefix to create all leading parent directories.z(Too many redirections trying to make %s.é    z_Ignoring request for a stacked branch as repository already exists at the destination location.)ÚlossyzUThese branches have diverged.  See "brz help diverged-branches" for more information.zIIt is not possible to losslessly push to %s. You may want to use --lossy.z³At %s you have a valid .bzr control directory, but not a branch or repository. This is an unsupported configuration. Please move the target directory out of the way and try again.FzjThis transport does not update the working tree of: %s. See 'brz help working-trees' for more information.r   )Úshow_branch_change)*r   Úget_transportr   Ú
ControlDirÚopen_from_transportr   ÚNotBranchErrorÚcreate_clone_on_transportÚAlreadyControlDirErrorÚCommandErrorr
   Ú
FileExistsÚ
NoSuchFileÚTooManyRedirectionsr   Úget_stacked_on_urlr   Ú_mod_branchÚUnstackableBranchFormatÚUnstackableRepositoryFormatÚ
NotStackedr   Ú_mod_revisionÚNULL_REVISIONÚ	old_revidÚ	old_revnoÚget_push_locationÚset_push_locationÚbaser	   Úpush_branchÚDivergedBranchesÚNoRoundtrippingSupportÚmappingÚvcsÚabbreviationÚNoRepositoryPresentr   r   Ú	lock_readÚlogr'   )Úbr_fromr!   Úlocationr   ÚverboseÚ	overwriteÚrememberr   r"   r#   r$   r&   Úto_transportÚdir_toÚbr_toÚpush_resultÚer'   s                     r   Ú_show_push_branchrQ   <   s   € õ, Ô*¨8¸WÐEÑEÔE€LðÝÔ&×:Ò:¸<ÑHÔHˆˆøÝÔ ð ð ð àˆˆˆðøøøð �~ð!	IØ×5Ò5°lØBMÐZdØDQÐdtØ>Eð 6ñ Gô GˆEˆEøõ Ô,ð 	7ð 	7ð 	7ÝÔ%¥gð'ñ'(ô '(à+3¨+ñ'6ñ 7ô 7ð 7õ Ô#ð 	ð 	ð 	Ø#ð PÝÔ)­'ð 3Cñ +Dô +Dð GOñ+Oñ Pô Pð Pð ÝÔ#ð 	ð 	ð 	Ø ð 6ÝÔ)­'ð 3Qñ +Rô +Rð -5ñ	+5ñ 6ô 6ð 6ð ÝÔ)ð 	Ið 	Ið 	IÝÔ%¥gð /<ñ '=ô '=Ø?Gñ'Hñ Iô Ið Ið	Iøøøõ !‘l”lˆð	*Ø%*×%=Ò%=Ñ%?Ô%?ˆKÔ"Ð"øÝÔ3ÝÔ2ÝÔ!ð#ð 	*ð 	*ð 	*ð &*ˆKÔ"Ð"Ð"ð	*øøøð %*ˆÔ!Ý -Ô ;ˆÔØ !ˆÔàð 	2ØÐ$¨×)BÒ)BÑ)DÔ)DÐ)Là×%Ò% e¤jÑ1Ô1Ð1ùàÐ!Ýð Bñ Cô Cð Cð	fØ ×,Ò,¨W°kÀ9Ø-5°}ÈEð -ñ Sô SˆKˆKøåÔ&ð 	Ið 	Ið 	IÝÔ%¥gð /Gñ 'Hô 'Hñ Iô Ið Iõ Ô,ð 	:ð 	:ð 	:ÝÔ%Ýð Cñ Dô Dà”Ô'Ô+Ô8ñ9ñ:ô :ð :øøøøõ Ô)ð 	fð 	fð 	fõ Ô%¥gð /Yñ 'Zô 'Zð ]eñ'eñ fô fð fð	føøøð Ô*¨eÐ3Ð3Ýð (à*5Ô*CÔ*HñIñ Jô Jð Jð ×Ò�wÑÔÐØð 6ØÔ)ˆØ�_Š_ÑÔð 	6ð 	6Ø/Ð/Ð/Ð/Ð/Ð/ØÐ˜u g¨{Ô/DØ*Ô4ñ6ô 6ð 6ð	6ð 	6ð 	6ñ 	6ô 	6ð 	6ð 	6ð 	6ð 	6ð 	6ð 	6ð 	6øøøð 	6ð 	6ð 	6ð 	6ð 	6ð 	6ð6ð 6sX   ˜8 ¸AÁAÁA/ Á/CE ÅE, Å,-FÆFÈH  È >KÉ8JÊ7KÌ'MÍMÍM)FFFNFFFF)r   Ú r   r3   r   r   r   r7   r   Útracer   r	   Úi18nr
   r   rQ   r   r   r   ú<module>rU      sè   ðð" &Ð %ðð ð ð ð ð ð ð ð ð ð ð ð ð ðð ð ð ð ð ð ð ð Ð Ð Ð Ð Ð ð4ð 4ð 4ð 4ð 4ñ 4ô 4ð 4ð6 HMØV[ØCHðq6ð q6ð q6ð q6ð q6ð q6r   