§
    cÌc  ã                   óD   — d Z ddlmZmZ ddlmZ ddlmZ d„ Z	 	 d	d„Z	dS )
z@Remove the last revision from the history of the current branch.é   )ÚerrorsÚrevision)ÚBranch)ÚBoundBranchOutOfDatec                 ó  — | j                              ¦   «         }|                     ||¦  «        }g }|                     ¦   «         D ]>\  }}||vrŒ
|D ]1}	| j                              |	¦  «         |                     |	¦  «         Œ2Œ?|S )a  Remove tags on revisions between old_tip and new_tip.

    :param branch: Branch to remove tags from
    :param graph: Graph object for branch repository
    :param old_tip: Old branch tip
    :param parents: New parents
    :return: Names of the removed tags
    )ÚtagsÚget_reverse_tag_dictÚfind_unique_ancestorsÚitemsÚ
delete_tagÚappend)
ÚbranchÚgraphÚold_tipÚparentsÚreverse_tagsÚ	ancestorsÚremoved_tagsÚrevidr   Útags
             ú1/usr/lib/python3/dist-packages/breezy/uncommit.pyÚremove_tagsr      s§   € ð ”;×3Ò3Ñ5Ô5€LØ×+Ò+¨G°WÑ=Ô=€IØ€LØ#×)Ò)Ñ+Ô+ð %ð %‰ˆˆtØ˜	Ð!Ð!ØØð 	%ð 	%ˆCØŒK×"Ò" 3Ñ'Ô'Ð'Ø×Ò Ñ$Ô$Ð$Ð$ð	%ð Ðó    FNc           	      óX  — g }	 |�)|                      ¦   «          |                     |¦  «         |                       ¦   «          |                     | ¦  «         g }|�|                     ¦   «         dd…         }|r*d}	|                      ¦   «         €t	          j        ¦   «         ‚n?|                      ¦   «         }	|	�)|	                      ¦   «          |                     |	¦  «         |                      ¦   «         \  }
}|	�(||	                     ¦   «         k    rt          | |	¦  «        ‚|€|
}|dz
  }|
}|}| j
                             ¦   «         }|                     |¦  «        D ]~}||k    r|} n|rt          d||fz  ¦  «         |dz  }|                     |g¦  «                             |d¦  «        }|sŒT|                     t#          |dd…         ¦  «        ¦  «         Œt$          j        }|sí|	�|	                     ||¦  «         |                      ||¦  «         |	€d}| }n| }|	}t*          j        d         D ]&}|}|t$          j        k    rd} ||||
|||¦  «         Œ't%          j        |¦  «        s|g}ng }|�7|                     t#          |¦  «        ¦  «         |                     |¦  «         |                      ¦   «         r|st5          | |||¦  «         t#          |¦  «        D ]}|                     ¦   «          ŒdS # t#          |¦  «        D ]}|                     ¦   «          Œw xY w)aÔ  Remove the last revision from the supplied branch.

    :param dry_run: Don't actually change anything
    :param verbose: Print each step as you do it
    :param revno: Remove back to this revision
    :param local: If this branch is bound, only remove the revisions from the
        local branch. If this branch is not bound, it is an error to pass
        local=True.
    :param keep_tags: Whether to keep tags pointing at the removed revisions
        around.
    Nr   zRemoving revno %d: %sÚpost_uncommit)Ú
lock_writer   Úget_parent_idsÚget_bound_locationr   ÚLocalRequiresBoundBranchÚget_master_branchÚlast_revision_infoÚlast_revisionr   Ú
repositoryÚ	get_graphÚiter_lefthand_ancestryÚprintÚget_parent_mapÚgetÚextendÚreversedÚ_mod_revisionÚNULL_REVISIONÚset_last_revision_infor   ÚhooksÚis_nullÚset_parent_idsÚsupports_tagsr   Úunlock)r   Údry_runÚverboseÚrevnoÚtreeÚlocalÚ	keep_tagsÚ
unlockableÚpending_mergesÚmasterÚ	old_revnor   Ú	new_revnoÚ	cur_revnoÚnew_revision_idr   Úrev_idr   Ú
hook_localÚhook_masterÚhookÚhook_new_tipÚitems                          r   ÚuncommitrF   2   sµ  € ð €JðNØÐØ�OŠOÑÔÐØ×Ò˜dÑ#Ô#Ð#à×ÒÑÔÐØ×Ò˜&Ñ!Ô!Ð!àˆØÐØ!×0Ò0Ñ2Ô2°1°2°2Ô6ˆNàð 	*ØˆFØ×(Ò(Ñ*Ô*Ð2ÝÔ5Ñ7Ô7Ð7ð 3ð ×-Ò-Ñ/Ô/ˆFØÐ!Ø×!Ò!Ñ#Ô#Ð#Ø×!Ò! &Ñ)Ô)Ð)Ø#×6Ò6Ñ8Ô8Ñˆ	�7ØÐ '¨V×-AÒ-AÑ-CÔ-CÒ"CÐ"CÝ& v¨vÑ6Ô6Ð6Øˆ=ØˆEØ˜A‘Iˆ	àˆ	Ø!ˆØÔ!×+Ò+Ñ-Ô-ˆØ×2Ò2°7Ñ;Ô;ð 	:ð 	:ˆFØ˜IÒ%Ð%Ø"(�Ø�Øð EÝÐ-°¸FÐ0CÑCÑDÔDÐDØ˜‰NˆIØ×*Ò*¨F¨8Ñ4Ô4×8Ò8¸ÀÑFÔFˆGØð Øð
 ×!Ò!¥(¨7°1°2°2¬;Ñ"7Ô"7Ñ8Ô8Ð8Ð8õ ,Ô9ˆOàð 	=ØÐ!Ø×-Ò-¨i¸ÑIÔIÐIØ×)Ò)¨)°_ÑEÔEÐEØˆ~Ø!�
Ø$��à#�
Ø$�Ýœ _Ô5ð #ð #�Ø.�Ø¥=Ô#>Ò>Ð>Ø#'�LØ��Z ¨i¸À)Ø!ñ#ô #ð #ð #å Ô(¨Ñ9Ô9ð Ø*Ð+��à�ØÐØ—’�x¨Ñ7Ô7Ñ8Ô8Ð8Ø×#Ò# GÑ,Ô,Ð,Ø×#Ò#Ñ%Ô%ð =¨ið =Ý˜F E¨7°GÑ<Ô<Ð<å˜ZÑ(Ô(ð 	ð 	ˆDØ�KŠK‰MŒMˆMˆMð	ð 	ø•H˜ZÑ(Ô(ð 	ð 	ˆDØ�KŠK‰MŒMˆMˆMð	øøøs   „KL Ì(L))FFNNFF)
Ú__doc__Ú r   r   r+   r   r   r   r   rF   © r   r   ú<module>rJ      s™   ðð" GÐ Fðð ð ð ð ð ð ð ð Ð Ð Ð Ð Ð Ø (Ð (Ð (Ð (Ð (Ð (ðð ð ð* EIØ$)ð\ð \ð \ð \ð \ð \r   