File: //usr/lib/python2.7/dist-packages/hgext/censor.pyc
ó
ÛXc @@ 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
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 ƒ ƒ d
d
d „ ƒ Z d
d
d „ Z d S( sé 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.
i ( t absolute_import( t _( t short( t cmdutilt errort filelogt lockt revlogt scmutilt utils 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]c K@ sW d } } z5 | j ƒ } | j ƒ } t | | | | | | SWd t j | | ƒ Xd S( N( t Nonet wlockR t _docensort lockmodt release( t uit repot pathR R t optsR R ( ( s0 /usr/lib/python2.7/dist-packages/hgext/censor.pyR
3 s
c @ s© | s t j t d ƒ ƒ ‚ n | s<