ó
    6°hÌ  ã                  ó  • S r SSKJr  SSKJr  SSKJr  SSKJrJ	r	J
r
  0 r\	R                  " \5      rSr\" SSS	/ \" S
5      \" S5      4SSS\" S5      4SSS\" S5      \" S5      4/\" S5      \R                  S9SS j5       rSS jrg)aÑ  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
As having a censored version in a checkout is impractical. The current head
revisions of the repository are checked. If the revision to be censored is in
any of them the command will abort. You can configure this behavior using the
following option:

    `censor.policy`
        :config-doc:`censor.policy`
é    )Úannotations)Ú_)Úshort)ÚerrorÚ	registrarÚscmutils   ships-with-hg-coreó   censoró   rs   revs#   censor file from specified revisions   REVó    s   check-headsTs,   check that repository heads are not affectedó   ts	   tombstones   replacement tombstone datas   TEXTs   -r REV [-t TEXT] [FILE])Úhelpcategoryc           	     óä   • UR                  5          UR                  5          [        U UUUU4SU0UD6sS S S 5        sS S S 5        $ ! , (       d  f       O= fS S S 5        g ! , (       d  f       g = f)NÚcheck_heads)ÚwlockÚlockÚ	_docensor)ÚuiÚrepoÚpathÚrevÚ	tombstoner   Úoptss          Ú./usr/lib/python3/dist-packages/hgext/censor.pyÚcensorr   6   sW   € ð, 
�‰��t—y‘y•{ÜØØØØØñ
ð $ð
ð ñ
÷ #�{�‰—{•{ú��Žús!   ‘A!¢A´	A!Á
A	ÁA!Á!
A/c           	     ó  • U(       d  [         R                  " [        S5      5      eU(       d  [         R                  " [        S5      5      eUS    n[        R                  " Xr45      nUR                  5       (       d  [        UR                  5       5      S:w  a  [         R                  " [        S5      5      eUR                  5       S   nUR                  U5      n	[        U	5      (       d  [         R                  " [        S5      5      e[        R                  " X5      nU(       d  [         R                  " [        S5      5      e[        5       n
U H6  n X   nU
R                  UR                  U5      R                  5       5        M8     U(       aÛ  / nUR                  5       nS	nU[        U5      -  nU R!                  U5        U H8  nUU   nUU;   d  M  UR                  U5      U
;   d  M'  UR#                  U5        M:     U(       ac  S
R%                  U Vs/ s H  n['        UR)                  5       5      PM     sn5      n[         R                  " [        S5      U-  [        S5      S9eSnU R!                  U5        UR+                  5       nWR)                  5       U Vs/ s H  nUR)                  5       PM     sn;   a'  [         R                  " [        S5      [        S5      S9eSnU[        U
5      -  nU R!                  U5        UR-                  S5       nU	R/                  UX¤S9  S S S 5        g ! [         R                   a#    [         R                  " [        S5      W-  5      ef = fs  snf s  snf ! , (       d  f       g = f)Ns    must specify file path to censors    must specify revisions to censoré   s%   can only specify an explicit filenamer   s"   cannot censor file with no historys   no matching revisionss"   file does not exist at revision %ss.   checking for the censored content in %d heads
s   , s    cannot censor file in heads (%s)s   clean/delete and commit first)Úhints;   checking for the censored content in the working directory
s   cannot censor working directorys   clean/delete/update firsts   censoring %d file revisions
r	   )r   )r   ÚAbortr   r   ÚmatchÚanypatsÚlenÚfilesÚfileÚrevrangeÚsetÚaddÚfilectxÚfilenodeÚLookupErrorÚheadsÚstatusÚappendÚjoinr   ÚnodeÚparentsÚtransactionÚcensorrevision)r   r   r   Úrevsr   r   r   ÚwctxÚmÚflogÚ
file_nodesÚrÚctxr*   Ú
repo_headsÚmsgÚheadnodeÚhcÚcÚheadlistÚwpÚpÚtrs                          r   r   r   X   sÍ  € ÞÜ�kŠkœ!Ð?Ó@ÓAÐAÞÜ�kŠkœ!Ð?Ó@ÓAÐAà�‰:€Dä�Š�d˜GÓ$€AØ‡y�y‡{�{”c˜!Ÿ'™'›)“n¨Ó)Ü�kŠkœ!ÐDÓEÓFÐFØ�7‰7‹9�Q‰<€DØ�9‰9�T‹?€DÜˆt�9‰9Ü�kŠkœ!ÐAÓBÓCÐCä×Ò˜DÓ'€DÞÜ�kŠkœ!Ð4Ó5Ó6Ð6Ü“€JÛˆð	NØ‘'ˆCØ�N‰N˜3Ÿ;™; tÓ,×5Ñ5Ó7Ö8ñ ö ØˆØ—Z‘Z“\ˆ
Ø@ˆØŒs�:‹ÑˆØ
�	‰	�#ŒÛ"ˆHØ�h‘ˆBØ�r�z˜bŸk™k¨$Ó/°:Õ=Ø—‘˜RÖ ñ #ö Ø—z‘z¹EÓ"BºE°q¤5¨¯©«¦?¹EÑ"BÓCˆHÜ—+’+ÜÐ5Ó6¸ÑAÜÐ7Ó8ñð ð
 J€CØ‡I�Iˆc„NØ	�‰‹€BØ
‡x�xƒz©Ó+ª 1�a—f‘f–h©Ñ+Ó+Ü�kŠkÜÐ0Ó1ÜÐ/Ó0ñ
ð 	
ð
 +€CØŒ3ˆz‹?Ñ€CØ‡I�Iˆc„NØ	×	Ñ	˜)Ô	$¨Ø×Ñ˜B 
ÐÑ@÷ 
%Ð	$øôA × Ñ ó 	NÜ—+’+œaÐ EÓFÈÑLÓMÐMð	Nüò #Cùò ,÷ 
%Õ	$ús$   Å2L:È#M4Ê'M9Ì M>Ì:7M1Í>
NN)© r   T)Ú__doc__Ú
__future__r   Úmercurial.i18nr   Úmercurial.noder   Ú	mercurialr   r   r   ÚcmdtableÚcommandÚ
testedwithÚCATEGORY_MAINTENANCEr   r   rB   r   r   Ú<module>rL      sË   ðñõ6 #å Ý  ÷ñ ð €Ø
×
Ò
˜HÓ
%€ð
 #€
ñ 	Øð ØØÙÐ4Ó5Ùˆf‹Ið	
ð ØØÙÐ=Ó>ð		
ð 
ˆ|˜S¡!Ð$AÓ"BÁAÀgÃJÐOðñ  Ð Ó!Ø×-Ñ-ñ'ó*

ó+ð*

õ9Ar   