View file File name : censor.pyc Content :� �_^c @@ s� d Z d d l m Z d d l m Z d d l m Z d d l 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 � d e j �d d d � � Z d d d � Z d S( sn 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. i ( t absolute_import( t _( t short( t errort registrart scmutils ships-with-hg-coret censort rt revt s# censor file from specified revisiont REVt tt tombstones replacement tombstone datat TEXTs -r REV [-t TEXT] [FILE]t helpcategoryc K@ sC | j � �1 | j � � t | | | | | | � SWd QXWd QXd S( N( t wlockt lockt _docensor( t uit repot pathR R t opts( ( s0 /usr/lib/python2.7/dist-packages/hgext/censor.pyR 3 s c K@ s� | s t j t d � � � n | s<