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/mercurial/store.pyc

Xc@@sddlmZddlZddlZddlZddlZddlmZddlm	Z	m
Z
mZmZm
Z
dZee
deZdZd	Zd
Ze\ZZdZdZd
Zee
ddpeZd+Zd,ZdZdZdZdeddZ dZ!dZ"dZ#ee
de#Z#dZ$dZ%dZ&d e'fd!YZ(d"e(fd#YZ)d$e'fd%YZ*d&ej+ej,fd'YZ-d(e(fd)YZ.d*Z/dS(-i(tabsolute_importNi(t_(terrortparserstpycompattscmutiltutilcC@s(|jddjddjddS(sI
    >>> _encodedir('data/foo.i')
    'data/foo.i'
    >>> _encodedir('data/foo.i/bla.i')
    'data/foo.i.hg/bla.i'
    >>> _encodedir('data/foo.i.hg/bla.i')
    'data/foo.i.hg.hg/bla.i'
    >>> _encodedir('data/foo.i\ndata/foo.i/bla.i\ndata/foo.i.hg/bla.i\n')
    'data/foo.i\ndata/foo.i.hg/bla.i\ndata/foo.i.hg.hg/bla.i\n'
    s.hg/s.hg.hg/s.i/s.i.hg/s.d/s.d.hg/(treplace(tpath((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt
_encodedirst	encodedircC@s8d|kr|S|jddjddjddS(s
    >>> decodedir('data/foo.i')
    'data/foo.i'
    >>> decodedir('data/foo.i.hg/bla.i')
    'data/foo.i/bla.i'
    >>> decodedir('data/foo.i.hg.hg/bla.i')
    'data/foo.i.hg/bla.i'
    s.hg/s.d.hg/s.d/s.i.hg/s.i/s.hg.hg/(R(R((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt	decodedir,s	cc@stgdD]}t|^q}xtdD]}|Vq,WxtddD]}|VqKWx|D]}|VqaWdS(s characters that are problematic for filesystems

    * ascii escapes (0..31)
    * ascii hi (126..255)
    * windows specials

    these characters will be escaped by encodefunctions
    u\:*?"<>|i i~iN(tordtrange(txtwinreserved((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt	_reserved<s			
c@sAd}tjr-d}ttd}nt}tttd}tttdtdd}t	d|Dx%t
D]}d|||<qWx;|t|gD]&}|||j||<qWix$jD]\}}||<qWfd	fd
fdfS(s
    >>> enc, dec = _buildencodefun()

    >>> enc('nothing/special.txt')
    'nothing/special.txt'
    >>> dec('nothing/special.txt')
    'nothing/special.txt'

    >>> enc('HELLO')
    '_h_e_l_l_o'
    >>> dec('_h_e_l_l_o')
    'HELLO'

    >>> enc('hello:world?')
    'hello~3aworld~3f'
    >>> dec('hello~3aworld~3f')
    'hello:world?'

    >>> enc('thequickshot')
    'the~07quick~adshot'
    >>> dec('the~07quick~adshot')
    'the\x07quick\xadshot'
    RcS@s
t|gS(N(tbytes(R((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt<lambda>gsitAtZics@s|]}||fVqdS(N((t.0R((s3/usr/lib/python2.7/dist-packages/mercurial/store.pys	<genexpr>nss~%02xc3@szd}xm|t|kruxTtddD]=}y#||||!V||7}PWq+tk
rgq+Xq+Wtq	WdS(Niii(tlentxrangetKeyError(tstitl(tdmap(s3/usr/lib/python2.7/dist-packages/mercurial/store.pytdecodews

c@s$djg|D]}|^q
S(Nt(tjoin(Rtc(tcmap(s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRsc@sdjt|S(NR(Rtlist(R(R(s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRs(
Rtispy3RRtchrtmapR"R
RtdictRtlowert	iteritems(tetxchrtasciistrtcapitalsRtktv((R!RRs3/usr/lib/python2.7/dist-packages/mercurial/store.pyt_buildencodefunMs$		%$cC@stt|S(s}
    >>> encodefilename('foo.i/bar.d/bla.hg/hi:world?/HELLO')
    'foo.i.hg/bar.d.hg/bla.hg.hg/hi~3aworld~3f/_h_e_l_l_o'
    (t_encodefnameR
(R((s3/usr/lib/python2.7/dist-packages/mercurial/store.pytencodefilenamescC@stt|S(s}
    >>> decodefilename('foo.i.hg/bar.d.hg/bla.hg.hg/hi~3aworld~3f/_h_e_l_l_o')
    'foo.i/bar.d/bla.hg/hi:world?/HELLO'
    (Rt_decodefname(R((s3/usr/lib/python2.7/dist-packages/mercurial/store.pytdecodefilenamesc@stgtdD]}t|t|f^qx%tD]}d|t|<qAWxCttdtddD]"}t|jt|<qWfdS(s
    >>> f = _buildlowerencodefun()
    >>> f('nothing/special.txt')
    'nothing/special.txt'
    >>> f('HELLO')
    'hello'
    >>> f('hello:world?')
    'hello~3aworld~3f'
    >>> f('thequickshot')
    'the~07quick~adshot'
    is~%02xRRic@s$djg|D]}|^q
S(NR(R(RR (R!(s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRs(R&RR$RR
RR'(R((R!s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt_buildlowerencodefuns7& tlowerencodetauxtcontprntnultcomtlptcC@s[xTt|D]F\}}|s%q
n|rd|ddkrddt|d|d}|||<n|jd}|dkrt|}n|dkr|d tks|dkr |dd	kr |dd
kr |d tkr dt|d}|dd!||d}|||<n|ddkr
|d dt|d||<q
q
W|S(s
    Encodes filenames containing names reserved by Windows or which end in
    period or space. Does not touch other single reserved characters c.
    Specifically, c in '\:*?"<>|' or ord(c) <= 31 are *not* encoded here.
    Additionally encodes space or period at the beginning, if dotencode is
    True. Parameter path is assumed to be all lowercase.
    A segment only needs encoding if a reserved name appears as a
    basename (e.g. "aux", "aux.foo"). A directory or file named "foo.aux"
    doesn't need encoding.

    >>> s = '.foo/aux.txt/txt.aux/con/prn/nul/foo.'
    >>> _auxencode(s.split('/'), True)
    ['~2efoo', 'au~78.txt', 'txt.aux', 'co~6e', 'pr~6e', 'nu~6c', 'foo~2e']
    >>> s = '.com1com2/lpt9.lpt4.lpt1/conprn/com0/lpt0/foo.'
    >>> _auxencode(s.split('/'), False)
    ['.com1com2', 'lp~749.lpt4.lpt1', 'conprn', 'com0', 'lpt0', 'foo~2e']
    >>> _auxencode(['foo. '], True)
    ['foo.~20']
    >>> _auxencode([' .foo'], True)
    ['~20.foo']
    is. s~%02xit.iiit9t1i(t	enumerateRtfindRt_winres3t_winres4(Rt	dotencodeRtnRtec((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt
_auxencodes$
,
'ixiicC@stj|j}t|djd}t||}|d}tjj|\}}g}d}	x|d D]}
|
t	 }|ddkr|d d}n|	dkrt
|}n$|	dt
|}|tkrPn|j||}	qvWdj
|}
t
|
dkr+|
d7}
nd|
||}tt
|}|dkr||| }d|
|||}n|S(	Nit/iis. Risdh/(thashlibtsha1t	hexdigestR5tsplitRFtosRtsplitextt
_dirprefixlenRt_maxshortdirslentappendRt_maxstorepathlen(RRCtdigesttletpartstbasenamet_roottexttsdirstsdirslentptdtttdirstrest	spacelefttfiller((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt_hashencodes6





cC@sat|}t|jd}djt||}t|tkr]t||}n|S(seencodes path with a length limit

    Encodes all paths that begin with 'data/', according to the following.

    Default encoding (reversible):

    Encodes all uppercase letters 'X' as '_x'. All reserved or illegal
    characters are encoded as '~xx', where xx is the two digit hex code
    of the character (see encodefilename).
    Relevant path components consisting of Windows reserved filenames are
    masked by encoding the third character ('aux' -> 'au~78', see _auxencode).

    Hashed encoding (not reversible):

    If the default-encoded path is longer than _maxstorepathlen, a
    non-reversible hybrid hashing of the path is done instead.
    This encoding uses up to _dirprefixlen characters of all directory
    levels of the lowerencoded path, but not more levels than can fit into
    _maxshortdirslen.
    Then follows the filler followed by the sha digest of the full path.
    The filler is the beginning of the basename of the lowerencoded path
    (the basename is everything after the last path separator). The filler
    is as long as possible, filling in characters from the basename until
    the encoded path has _maxstorepathlen characters (or all chars of the
    basename have been taken).
    The extension (e.g. '.i' or '.d') is preserved.

    The string 'data/' at the beginning is replaced with 'dh/', if the hashed
    encoding was used.
    RG(R
R0RKRRFRRQRa(RRCtefR^((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt
_hybridencodescC@s{t|}t|tkr+t|tSt|jd}djt|t}t|tkrwt|tS|S(NRG(	R
RRQRatTrueR0RKRRF(RtdeRbR^((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt_pathencode#s

t
pathencodecC@s
t|tS(N(RctFalse(tf((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt_plainhybridencode/scC@sRy4|jj}dtj@d|@kr3d}nWntk
rMd}nX|S(Ni(tstattst_modeRtumasktNonetOSError(tvfstmode((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt	_calcmode2s


sSdata meta 00manifest.d 00manifest.i 00changelog.d 00changelog.i phaseroots obsstoret
basicstorecB@sqeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
RS(s&base class for local repository storescC@sa||}|j|_t||_|j|_||_tj|t|_|j|_	dS(N(
tbaseRRrt
createmodetrawvfsRt	filtervfsR
Rptopener(tselfRtvfstypeRp((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt__init__Bs	cC@s|jdt|S(NRG(RR
(RyRi((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRKscC@s7|j}|r |d|7}nt|jd}g}|jj|r)|g}|jj}x|r%|j}x||dtD]\}	}
}|d|	}|
tjkr|	ddkrt	j
||}
|jt|
|
|j
fq|
tjkr|r|j|qqWqcWn|j|S(s!yields (unencoded, encoded, size)RGiRkis.ds.i(s.ds.i(RRRvtisdirtreaddirtpopRdRktS_IFREGRtpconvertRPRtst_sizetS_IFDIRtsort(RytrelpathtrecurseRtstriplenRtvisitR}RZRitkindtsttfpRD((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt_walkNs&			""
cC@s |jdt|jdtS(Ntdatatmeta(RRd(Ry((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt	datafilesdscC@st|jdtS(NR(treversedRRh(Ry((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyttopfilesgscc@s<x|jD]}|Vq
Wx|jD]}|Vq)WdS(s!yields (unencoded, encoded, size)N(RR(RyR((s3/usr/lib/python2.7/dist-packages/mercurial/store.pytwalkks	cC@sdgtjS(Ntrequires(t_dataRK(Ry((s3/usr/lib/python2.7/dist-packages/mercurial/store.pytcopylistsscC@sdS(N((Ryttr((s3/usr/lib/python2.7/dist-packages/mercurial/store.pytwritevscC@sdS(N((Ry((s3/usr/lib/python2.7/dist-packages/mercurial/store.pytinvalidatecachesyscC@sdS(N((Rytfn((s3/usr/lib/python2.7/dist-packages/mercurial/store.pytmarkremoved|scC@s[djd|f}|jj|dr/tS|jdsK|d}n|jj|S(s!Checks if the store contains pathRGRs.i(RRptexistsRdtendswith(RyR((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt__contains__s
(t__name__t
__module__t__doc__R{RRRRRRRRRR(((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRs@s											tencodedstorecB@s,eZdZdZdZdZRS(cC@se||d}|j|_t||_|j|_||_tj|t|_|j|_	dS(Ns/store(
RtRRrRuRvRRwR1RpRx(RyRRzRp((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyR{s	cc@sex^tt|jD]G\}}}yt|}Wntk
rNd}nX|||fVqWdS(N(tsuperRRR3RRn(Rytatbtsize((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRs%

cC@s|jdt|S(NRG(RR1(RyRi((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRscC@s+ddggtjD]}d|^qS(NRs
00changelog.isstore/(RRK(RyRi((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRs	(RRR{RRR(((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRs				tfncachecB@sGeZdZdZdZdZdZdZdZRS(cC@s||_d|_t|_dS(N(RpRntentriesRht_dirty(RyRp((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyR{s		cC@st|_y|jddd}Wntk
rBt|_dSXtt|jj|_d|jkr|j	dxRt
|D]A\}}|jdstd|d	}t
j|qqWn|jdS(
s&fill the entries from the fncache fileRRqtrbNRis
s!invalid entry in fncache, line %di(RhRRptIOErrortsetRRtreadt
splitlinestseekR?trstripRRtAborttclose(RyRRDtlineR\((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt_loads	
!
cC@sz|jrv|jd|jddddt}|jr`|jtdj|jdn|jt	|_ndS(NRRqtwbt
atomictemps
(
Rt	addbackupRpRdRRR
RRRh(RyRR((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRs	
	&
cC@sK|jdkr|jn||jkrGt|_|jj|ndS(N(RRnRRdRtadd(RyR((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRs

	cC@sQ|jdkr|jny|jj|t|_Wntk
rLnXdS(N(RRnRtremoveRdRR(RyR((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRs


cC@s)|jdkr|jn||jkS(N(RRnR(RyR((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRs
cC@s)|jdkr|jnt|jS(N(RRnRtiter(Ry((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt__iter__s
(	RRR{RRRRRR(((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRs								t_fncachevfscB@s&eZdZddZdZRS(cC@s)tjj||||_||_dS(N(RtauditvfsR{Rtencode(RyRptfncR((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyR{s	trcO@s\|dkr=|jds*|jdr=|jj|n|j|j||||S(NRRsdata/smeta/(RR(t
startswithRRRpR(RyRRqtargstkw((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt__call__scC@s3|r|jj|j|S|jj|SdS(N(RpRR(RyR((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRs(RRR{RR(((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRs	tfncachestorecB@sbeZdZdZdZdZdZdZdZdZ	dZ
d	ZRS(
cC@s|rt}nt}||_||d}|j|_|jd|_t||_|j|_||_t	|}||_	t
||||_|j|_dS(Ns/storeRG(
RfRjRRtRtpathsepRrRuRvRRRpRx(RyRRzRCRRpR((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyR{s				cC@s|j|j|S(N(RR(RyRi((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRscC@s|jj|jS(N(RvRkR(RyR((s3/usr/lib/python2.7/dist-packages/mercurial/store.pytgetsizescc@svxot|jD]^}|j|}y|||j|fVWqtk
rm}|jtjkrnqnqXqWdS(N(tsortedRRRRoterrnotENOENT(RyRiRbterr((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyR
scC@s1d}ddgg|jD]}d|^qS(Ns^data meta dh fncache phaseroots obsstore 00manifest.d 00manifest.i 00changelog.d 00changelog.iRs
00changelog.isstore/(RK(RyR[Ri((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRs	cC@s|jj|dS(N(RR(RyR((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRscC@sd|j_dS(N(RnRR(Ry((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRscC@s|jj|dS(N(RR(RyR((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRscC@sW|j|}y|j|tSWn,tk
rR}|jtjkrNntSXdS(N(RRRdRoRRRh(RyRiRbR((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt_exists"s
cC@sdjd|f}|d}||jkrA|j|rAtS|jds]|d7}nx3|jD](}|j|rg|j|rgtSqgWtS(s!Checks if the store contains pathRGRs.i(RRRRdRRRh(RyRR)((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyR-s

(RRR{RRRRRRRRR(((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyRs										cC@sHd|kr;d|kr.t||d|kSt||St||S(NtstoreRRC(RRRs(trequirementsRRz((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyR<s

(R6R7R8R9(R:R;(0t
__future__RRRHRLRkti18nRRRRRRRR	tgetattrR
RRR/R0R2R1R3R4RnR5RARBRFRQRNRORaRcRfRjRrRtobjectRsRRtabstractvfsRRRR(((s3/usr/lib/python2.7/dist-packages/mercurial/store.pyt<module>sF(
				9				,		&	
		J=J