§
    	^µc…  ã                   ó  — d Z ddlmZ ddlmZ ddlmZmZmZm	Z	 i Z
 ej        e
¦  «        ZdZ edddd	 ed
¦  «         ed¦  «        fddd	 ed¦  «         ed¦  «        fg ed¦  «        ej        ¬¦  «        dd„¦   «         Zdd„ZdS )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.
é    )Ú_)Ú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])Úhelpcategoryc           	      óò   — |                      ¦   «         5  |                     ¦   «         5  t          | ||||fi |¤Žcd d d ¦  «         cd d d ¦  «         S # 1 swxY w Y   d d d ¦  «         d S # 1 swxY w Y   d S )N)ÚwlockÚlockÚ	_docensor)ÚuiÚrepoÚpathÚrevÚ	tombstoneÚoptss         ú./usr/lib/python3/dist-packages/hgext/censor.pyÚcensorr   3   sH  € ð  
�Š‰Œð Að A�t—y’y‘{”{ð Að AÝ˜˜T 4¨¨iÐ@Ð@¸4Ð@Ð@ðAð Að Að Añ Aô Að Að Að Að Að Añ Aô Að Að Að Að Að Að Aøøøð Að Að Að Að Að Að Añ Aô Að Að Að Að Að Að Að Aøøøð Að Að Að Að Að As3   •A,ªA»A,ÁA	ÁA,ÁA	ÁA,Á,A0Á3A0c                 ón  — |s!t          j        t          d¦  «        ¦  «        ‚|s!t          j        t          d¦  «        ¦  «        ‚|d          }t          j        ||f¦  «        }|                     ¦   «         s%t          |                     ¦   «         ¦  «        dk    r!t          j        t          d¦  «        ¦  «        ‚|                     ¦   «         d         }|                     |¦  «        }t          |¦  «        s!t          j        t          d¦  «        ¦  «        ‚t          j
        |||¦  «                             ¦   «         }	 ||         }	n2# t          $ r% t          j        t          d¦  «        |z  ¦  «        ‚w xY w	 |	                     |¦  «        }
n7# t           j        $ r% t          j        t          d¦  «        |z  ¦  «        ‚w xY w|
                     ¦   «         }g }|                     ¦   «         D ]<}||         }||v r.|                     |¦  «        |k    r|                     |¦  «         Œ=|rRd	                     d
„ |D ¦   «         ¦  «        }t          j        t          d¦  «        |z  t          d¦  «        ¬¦  «        ‚|                     ¦   «         }|	                     ¦   «         d„ |D ¦   «         v r0t          j        t          d¦  «        t          d¦  «        ¬¦  «        ‚|                     d¦  «        5 }|                     |||¬¦  «         d d d ¦  «         d S # 1 swxY w Y   d S )Ns    must specify file path to censors   must specify revision to censoré   s%   can only specify an explicit filenamer   s"   cannot censor file with no historys   invalid revision identifier %ss"   file does not exist at revision %ss   , c                 óP   — g | ]#}t          |                     ¦   «         ¦  «        ‘Œ$S © )r   Únode)Ú.0Úcs     r   ú
<listcomp>z_docensor.<locals>.<listcomp>i   s&   € Ð>Ð>Ð>°1�u Q§V¢V¡X¤X™œÐ>Ð>Ð>r   s    cannot censor file in heads (%s)s   clean/delete and commit first)Úhintc                 ó6   — g | ]}|                      ¦   «         ‘ŒS r   )r   )r   Úps     r   r!   z_docensor.<locals>.<listcomp>p   s    € Ð+Ð+Ð+ 1�a—f’f‘h”hÐ+Ð+Ð+r   s   cannot censor working directorys   clean/delete/update firstr	   )r   )r   ÚAbortr   r   ÚmatchÚanypatsÚlenÚfilesÚfiler   Ú	revsingler   ÚKeyErrorÚfilectxÚLookupErrorÚfilenodeÚheadsÚappendÚjoinÚparentsr   ÚtransactionÚcensorrevision)r   r   r   r   r   r   ÚwctxÚmÚflogÚctxÚfctxÚfnoder0   ÚheadnodeÚhcÚheadlistÚwpÚtrs                     r   r   r   G   sk  € Øð BÝŒk�!Ð?Ñ@Ô@ÑAÔAÐAØð AÝŒk�!Ð>Ñ?Ô?Ñ@Ô@Ð@à�Œ:€DåŒ�d˜T˜GÑ$Ô$€AØ‡y‚y�{„{ð G•c˜!Ÿ'š'™)œ)‘n”n¨Ò)Ð)ÝŒk�!ÐDÑEÔEÑFÔFÐFØ�7Š7‰9Œ9�QŒ<€DØ�9Š9�T‰?Œ?€DÝˆt‰9Œ9ð DÝŒk�!ÐAÑBÔBÑCÔCÐCå
Ô
˜t S¨#Ñ
.Ô
.×
2Ò
2Ñ
4Ô
4€CðFØ�3ŒiˆˆøÝð Fð Fð FÝŒk�!Ð=Ñ>Ô>ÀÑDÑEÔEÐEðFøøøðJØ�{Š{˜4Ñ Ô ˆˆøÝÔð Jð Jð JÝŒk�!ÐAÑBÔBÀSÑHÑIÔIÐIðJøøøð �MŠM‰OŒO€EØ€EØ—J’J‘L”Lð ð ˆØ�(Œ^ˆØ�2ˆ:ˆ:˜"Ÿ+š+ dÑ+Ô+¨uÒ4Ð4Ø�LŠL˜ÑÔÐøØð 
Ø—:’:Ð>Ð>¸Ð>Ñ>Ô>Ñ?Ô?ˆÝŒkÝÐ1Ñ2Ô2°XÑ=ÝÐ3Ñ4Ô4ð
ñ 
ô 
ð 	
ð
 
�Š‰Œ€BØ
‡x‚x�z„zÐ+Ð+¨Ð+Ñ+Ô+Ð+Ð+ÝŒkÝÐ0Ñ1Ô1ÝÐ/Ñ0Ô0ð
ñ 
ô 
ð 	
ð
 
×	Ò	˜)Ñ	$Ô	$ð <¨Ø×Ò˜B °ÐÑ;Ô;Ð;ð<ð <ð <ñ <ô <ð <ð <ð <ð <ð <ð <ð <øøøð <ð <ð <ð <ð <ð <s*   ÅE Å/E?ÆF Æ4GÌL*Ì*L.Ì1L.N)r   r   )Ú__doc__Úmercurial.i18nr   Úmercurial.noder   Ú	mercurialr   r   r   r   ÚcmdtableÚcommandÚ
testedwithÚCATEGORY_MAINTENANCEr   r   r   r   r   ú<module>rI      sQ  ððð ð2 Ð Ð Ð Ð Ð Ø  Ð  Ð  Ð  Ð  Ð  ðð ð ð ð ð ð ð ð ð ð ð ð €Ø
ˆ)Ô
˜HÑ
%Ô
%€ð
 #€
ð 	€Øð ØØØˆAÐ4Ñ5Ô5ØˆAˆf‰IŒIð	
ð 
ˆ|˜S ! !Ð$AÑ"BÔ"BÀAÀAÀgÁJÄJÐOð	ð €AÐ Ñ!Ô!ØÔ-ðñ ô ðAð Að Añô ðAð
0<ð 0<ð 0<ð 0<ð 0<ð 0<r   