📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/shelleycutler.com/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
lib64
›
python3.9
›
site-packages
›
hgext
›
📁 __pycache__
📍
Lokasi:
/usr/lib64/python3.9/site-packages/hgext/__pycache__
💾
Free:
45.4 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: censor.cpython-39.opt-1.pyc
a �+�b� � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZm Z m Z mZ i Ze � e�Z dZe ddd d ed�ed�fd dd ed�ed�fged�e jd�ddd��Zddd�ZdS )an erase 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�scmutils ships-with-hg-core� censor� rs rev� s# censor file from specified revisions REV� ts tombstones replacement tombstone datas TEXTs -r REV [-t TEXT] [FILE])Zhelpcategoryc K sz |� � �^ |�� �6 t| ||||fi |��W d � W d � S 1 sN0 Y W d � n1 sl0 Y d S )N)Zwlock�lock� _docensor)�ui�repo�path�rev� tombstone�opts� r �2/usr/lib64/python3.9/site-packages/hgext/censor.py�censor4 s r c K s� |st �td���|s$t �td���|d }t�||f�}|�� sRt|�� �dkr`t �td���|�� d }|�|�}t|�s�t �td���t � |||��� }z|| } W n$ ty� t �td�| ��Y n0 z| � |�} W n( t j�y t �td�| ��Y n0 | �� }g }|�� D ]2} || }||v �r|�|�|k�r|�|� �q|�r�d �d d� |D ��}t jtd�| td �d��|�� }| �� dd� |D �v �r�t jtd�td�d��|�d�� }|j|||d� W d � n1 �s�0 Y d S )Ns must specify file path to censors must specify revision to censor� s% can only specify an explicit filenamer s"