403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib64/python3.9/site-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/mercurial/__pycache__/strip.cpython-39.opt-1.pyc
a

�+�b�"�@s*ddlmZddlmZddlmZddlmZm	Z	m
Z
mZmZ
mZmZmZmZmZmZmZe
jZiZe�e�Zd+dd�Zd	d
�Zd,d
d�Zedddged�ed�fddded�fddded�fddded�fddded�fddded �fd!d"ged#�ed$�fdd%ded&�fged'�ejd(�d)d*��ZdS)-�)�absolute_import�)�_)�getattr)�	bookmarks�cmdutil�error�hg�lock�
logcmdutil�
mergestate�pycompat�	registrar�repair�scmutil�utilFcCs4|��}|s"t�|�t�|�ntj|dd�|S)NT)Z	skipmerge)�statusrZcheckunfinishedZ
bailifchanged)�repo�force�s�r�5/usr/lib64/python3.9/site-packages/mercurial/strip.py�checklocalchangess
rc		Cs�|j�|d�\}}|d��}t�|d�rR||jkrR|dd�|jjD�vrR|}nF|||��kr�d}d}|�|||||||�}|r�|j}|�	|�
��}|S)NrsmqcSsg|]
}|j�qSr��node)�.0�xrrr�
<listcomp>+�z%_findupdatetarget.<locals>.<listcomp>sparents(wdir())s7max(((parents(%ln::%r) + %r) - %ln::%r) and branch(%s)))�	changelog�parents�branchrZsafehasattr�nullid�mq�applied�revsr�first)	rZnodesZunodeZp2Z
currentbranchZpwdirZrevsetZbranchtarget�clrrr�_findupdatetarget$s&
����r(TNc
Cs6|����|����|rLt||d�t||�}t�||�|j�|���|rbt	�
||||�nt	�||||�|j}	|r�|�
d��<}
|j|vr�t�|�|	�||
dd�|D��Wd�n1s�0Yt|�D]}|�td�|�q�Wd�n1�s0YWd�n1�s(0YdS)N)rsstripcSsg|]}|df�qS�Nr�r�brrrrWrzstrip.<locals>.<listcomp>�bookmark '%s' deleted
)�wlockr
rr(r	�clean�dirstate�write�currenttransactionrZ	softstrip�strip�
_bookmarks�transactionZ_activebookmark�bookmarksmodZ
deactivate�applychanges�sortedr)�uirr%�update�backuprr�soft�urev�	repomarks�tr�bookmarkrrrr2;s"



6r2s
debugstrip�r�revsNstrip specified revision (optional, can specify revisions without this option)sREV�f�forcesDforce removal of changesets, discard uncommitted changes (no backup)rs	no-backupsdo not save backup bundle�nobackups&do not save backup bundle (DEPRECATED)�nsignored  (DEPRECATED)�k�keeps,do not modify working directory during strip�B�bookmarks.remove revs only reachable from given bookmarksBOOKMARK�softs:simply drop changesets from visible history (EXPERIMENTAL)s1hg debugstrip [-k] [-f] [-B bookmark] [-r] REV...)Zhelpcategorycs�t�|�}d}|�d�s"|�d�r&d}�j�t|�|�d�}tt��|��}�����t|�d��}|�r��j	}|�
|�s�t�t
d�d�t|t|�������i}t�|�D]\}}	|�|	g��|�q�|��D],}
|�|
�r�t��|
d	�}|�t|��q�|�s�����X��d��,}d
d�|D�}
|��||
�Wd�n1�sT0YWd�n1�st0Yt|�D]}|�t
d
�|��q�|�s�t�t
d���t��|��}|�|��|�|�}t ���fdd��j!�"�D��}�fdd�|D�}t#�dd�}|du�r�|j$�r���%��&d���v�r�d|_'d	}t(|j$�}t)|j$�D] \}}|j*|v�rZ|}�q|�qZ|j$||�=|�+�t|�}|�rD|�d��rDt,�|�}�|}��-d|�%��}g}|D]}|�.�|�/���qԈj!��fdd��D�}|�.|��j!�0||�1�|��j!���2��t3j4�5��d}t6|�||||�d�||dd�Wd�n1�s|0Yd	S)a�strip changesets and all their descendants from the repository

    The strip command removes the specified changesets and all their
    descendants. If the working directory has uncommitted changes, the
    operation is aborted unless the --force flag is supplied, in which
    case changes will be discarded.

    If a parent of the working directory is stripped, then the working
    directory will automatically be updated to the most recent
    available ancestor of the stripped parent after the operation
    completes.

    Any stripped changesets are stored in ``.hg/strip-backup`` as a
    bundle (see :hg:`help bundle` and :hg:`help unbundle`). They can
    be restored by running :hg:`unbundle .hg/strip-backup/BUNDLE`,
    where BUNDLE is the bundle file created by the strip. Note that
    the local revision numbers will in general be different after the
    restore.

    Use the --no-backup option to discard the backup bundle once the
    operation completes.

    Strip is not a history-rewriting operation and can be used on
    changesets in the public phase. But if the stripped changesets have
    been pushed to a remote repository you will likely pull them again.

    Return 0 on success.
    Ts	no_backuprDFrArIsbookmark '%s' not found�,rcSsg|]}|df�qSr)rr*rrrr�rzdebugstrip.<locals>.<listcomp>Nr,sempty revision setc3s&|]}|�jko��|��vVqdSr))r"�rev)r�p)r'r�strippedrevsrr�	<genexpr>�s�zdebugstrip.<locals>.<genexpr>csh|]}��|��qSrr)r�r)r'rr�	<setcomp>�rzdebugstrip.<locals>.<setcomp>r#sqtiprGsonly(., %d)csg|]}��|�js|�qSr)Z	get_entryZmaybe_clean)r�f)r/rrrsrCrJ)r:r9rrr;)7r
Zbyteskwargs�getr�list�setrZrevranger-r3�issubsetrZAbortr�joinr7�keysZ	iteritems�
setdefault�append�values�
issupersetrZbookmarkrevsr9r
r4r6r0�descendants�union�
difference�anyr/r rr$rL�lookupZapplieddirty�len�	enumeraterZ	savedirtyr(r%�extend�filesZrebuildZmanifestr1�
mergestatemodrr.r2)r8rr%Zoptsr:rr=ZnodetobookmarksZmarkrZmarksZrsrevsr>Z	bmchangesr?r]�rootsr9Z	rootnodes�q�start�end�iZstatusentryr<ZuctxZdescendantrevsZchangedfilesrLZ
dirchangesr)r'r/rrNr�
debugstrip\s�S

��
N

�



�
�&rl)F)TTNNF)Z
__future__rZi18nrr
r�rr5rrr	r
Zlockmodrrrfrrrr�releaseZcmdtableZcommandrr(r2ZCATEGORY_MAINTENANCErlrrrr�<module>sv8


�
!����	�����1�6

Youez - 2016 - github.com/yon3zu
LinuXploit