HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python2.7/dist-packages/hgext/censor.pyc
ó
ÛXc	@@sûdZddlmZddlmZddlmZddlmZm	Z	m
Z
mZm
Z
mZmZiZejeƒZdZeddd	d
edƒedƒfd
dd
edƒedƒfgedƒƒd
d
d„ƒZd
d
d„ZdS(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(tabsolute_import(t_(tshort(tcmdutilterrortfilelogtlocktrevlogtscmutiltutilsships-with-hg-coretcensortrtrevts#censor file from specified revisiontREVttt	tombstonesreplacement tombstone datatTEXTs-r REV [-t TEXT] [FILE]cK@sWd}}z5|jƒ}|jƒ}t||||||SWdtj||ƒXdS(N(tNonetwlockRt	_docensortlockmodtrelease(tuitrepotpathRRtoptsRR((s0/usr/lib/python2.7/dist-packages/hgext/censor.pyR
3s
c@s©|stjtdƒƒ‚n|s<tjtdƒƒ‚n|d}tj||fƒ}|jƒst|jƒƒdkr—tjtdƒƒ‚n|jƒd}|j	|ƒ‰tˆƒsÚtjtdƒƒ‚ntj
|||ƒjƒ}y||}Wn*tk
r/tjtdƒ|ƒ‚nXy|j
|ƒ}	Wn-tjk
rrtjtdƒ|ƒ‚nX|	jƒ}
g|jƒD]}||^qŒ}g|D]-}||kr©|j|ƒ|
kr©|^q©}
|
r8d	jg|
D]}t|jƒƒ^qïƒ}tjtd
ƒ|dtdƒƒ‚n|jƒ}|jƒg|D]}|jƒ^qTkr“tjtd
ƒdtdƒƒ‚nˆjd@}|tjkrÎtjtdƒ|fƒ‚ntji|d6dƒ}|	jƒ}t|ƒˆj|ƒkr&tjtdƒƒ‚n|jˆjdƒ‰|jˆjddtƒ‰ˆjtj@rvˆˆ‰‰n0|jˆj dƒ‰|jˆj ddtƒ‰tj!ƒ‰ˆj"|ƒ}x1t#j$ˆd|ˆj%ƒD]}ˆj&|ƒqÞWx*t#j$ˆd|ƒD]}ˆj&|ƒqWd‡‡‡‡fd†‰tj'‡‡‡‡fd†}dˆj|ƒt|ƒ}||||||tj(ƒ7}xÓt)|dtˆƒƒD]¸}|ˆj*|ƒkryˆj+|ƒ}Wntj,k
r}|j-}nX||||ƒ}nIˆ||ƒˆj.|ƒ}x*t#j$ˆd|ƒD]}ˆj&|ƒqIW||7}q²Wˆj/ƒˆj/ƒˆˆk	r¥ˆj/ƒˆj/ƒndS(Ns must specify file path to censorsmust specify revision to censoris%can only specify an explicit filenameis"cannot censor file with no historysinvalid revision identifier %ss"file does not exist at revision %ss, s cannot censor file in heads (%s)thintsclean/delete and commit firstscannot censor working directorysclean/delete/update firstiÿÿs)censor does not support revlog version %dtcensoredR
s5censor tombstone must be no longer than censored dataRtwbt
atomictemptlimitc@s¿ˆj|\}}}}}}}	}
tj|ƒ}|rV|\}}}||O}ntj||ƒ}|||||||	|
f}
ˆjˆj|
dˆj|ƒƒˆjˆj	dƒdS(sÛRewrite the index entry with a new data offset and optional new data.

        The newdata argument, if given, is a tuple of three positive integers:
        (new compressed, new uncompressed, added flag bits).
        iN(
tindexRtgettypetoffset_typetwritet	packentryRtversiontseektsize(Rtnewoffstnewdatatofflagstcomptuncomptbasetlinktp1tp2tnodeidtflagstnflagste(tflogtidxreadtidxwritetrio(s0/usr/lib/python2.7/dist-packages/hgext/censor.pytrewriteindex‡s%
"c@sˆj|ƒ\}}t|ƒt|ƒ}ˆ|||t|ƒ|fƒˆj|ƒˆj|ƒˆjˆj|ƒdƒ|S(s°Write the given full text to the filelog with the given data offset.

        Returns:
            The integer number of data bytes written, for tracking data offsets.
        i(tcompresstlenR#R&tlength(RtoffstdataR3tflagtcompdatatnewcomp(tdatareadt	datawriteR5R9(s0/usr/lib/python2.7/dist-packages/hgext/censor.pytrewrite—s

t (0RtAbortRRRtmatchtanypatsR;tfilestfilet	revsingleRtKeyErrortfilectxtLookupErrortfilenodetheadstjoinRtnodetparentsR%RtREVLOGNGRtpackmetatfilerevtrawsizetsvfst	indexfiletTruetREVLOGNGINLINEDATAtdatafiletrevlogiotstartR	t
filechunkiterR'R#tREVIDX_DEFAULT_FLAGStREVIDX_ISCENSOREDtxranget
parentrevstrevisiontCensoredNodeErrorRR<tclose(RRRRRRtwctxtmtctxtfctxtfnodetctheadctxsRPtheadlisttwptptflogvtcrevtoffsettchunkRDtpadtsrevtrevdataR4tdlen((RBRCR5R6R7R9R8s0/usr/lib/python2.7/dist-packages/hgext/censor.pyR@s”
$
#:.+
	#  




N(t__doc__t
__future__Rtmercurial.i18nRtmercurial.nodeRt	mercurialRRRRRRRR	tcmdtabletcommandt
testedwithR
R(((s0/usr/lib/python2.7/dist-packages/hgext/censor.pyt<module>s4
!