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/hgext/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

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

�+�b��	@s�dZddlmZddlmZddlmZddlmZm	Z	m
Z
mZiZe
�
e�Z
dZe
ddd	d
ed�ed�fd
dd
ed�ed�fged�e
jd�ddd��Zddd�ZdS)anerase file content at a given revision

The censor command instructs Mercurial to erase all content of a file at a given
revision *without updating the changeset hash.* This allows existing history to
remain valid while preventing future clones/pulls from receiving the erased
data.

Typical uses for censor are due to security or legal requirements, including::

 * Passwords, private keys, cryptographic material
 * Licensed data/code/libraries for which the license has expired
 * Personally Identifiable Information or other private data

Censored nodes can interrupt mercurial's typical operation whenever the excised
data needs to be materialized. Some commands, like ``hg cat``/``hg revert``,
simply fail when asked to produce censored data. Others, like ``hg verify`` and
``hg update``, must be capable of tolerating censored data to continue to
function in a meaningful way. Such commands only tolerate censored file
revisions if they are allowed by the "censor.policy=ignore" config option.

A few informative commands such as ``hg grep`` will unconditionally
ignore censored data and merely report that it was encountered.
�)�absolute_import)�_)�short)�error�
logcmdutil�	registrar�scmutilsships-with-hg-core�censor�rsrev�s#censor file from specified revisionsREV�ts	tombstonesreplacement tombstone datasTEXTs-r REV [-t TEXT] [FILE])Zhelpcategoryc	Ksz|���^|���6t|||||fi|��Wd�Wd�S1sN0YWd�n1sl0YdS)N)Zwlock�lock�	_docensor)�ui�repo�path�rev�	tombstone�opts�r�2/usr/lib64/python3.9/site-packages/hgext/censor.py�censor4srcKs�|st�td���|s$t�td���|d}t�||f�}|��sRt|���dkr`t�td���|��d}|�|�}t|�s�t�td���t	�
|||���}z||}	Wn$ty�t�td�|��Yn0z|	�
|�}
Wn(tj�yt�td�|��Yn0|
��}g}|��D]2}
||
}||v�r|�|�|k�r|�|��q|�r�d	�d
d�|D��}tjtd�|td
�d��|��}|	��dd�|D�v�r�tjtd�td�d��|�d�� }|j|||d�Wd�n1�s�0YdS)Ns must specify file path to censorsmust specify revision to censor�s%can only specify an explicit filenamers"cannot censor file with no historysinvalid revision identifier %ss"file does not exist at revision %ss, cSsg|]}t|����qSr)r�node)�.0�crrr�
<listcomp>jrz_docensor.<locals>.<listcomp>s cannot censor file in heads (%s)sclean/delete and commit first)�hintcSsg|]}|���qSr)r)r�prrrrqrscannot censor working directorysclean/delete/update firstr	)r)rZAbortrr�matchZanypats�len�files�filerZ	revsingler�KeyErrorZfilectx�LookupErrorZfilenode�heads�append�join�parentsrZtransactionZcensorrevision)rrrrrrZwctx�mZflog�ctxZfctxZfnoder%ZheadnodeZhcZheadlistZwp�trrrrrHsR

��rN)rr)rr)�__doc__Z
__future__rZmercurial.i18nrZmercurial.noderZ	mercurialrrrrZcmdtableZcommandZ
testedwithZCATEGORY_MAINTENANCErrrrrr�<module>s,
��
�

Youez - 2016 - github.com/yon3zu
LinuXploit