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/largefiles/proto.pyc
σ
ΫXc@@sοddlmZddlZddlZddlmZddlmZmZm	Z	m
Z
ddlmZe	j
Z
e	jZdZdZdZdZd„Zd	„Zd
„Zd„Zd„Zd
„Zd„ZejdƒZd„ZdS(i(tabsolute_importN(t_(terrorthttppeertutilt	wireprotoi(tlfutilsa
This repository uses the largefiles extension.

Please enable it in your Mercurial config file.
cC@s|jƒtj||ƒ}tjtjj|ƒƒtj|d|j	j
ƒ}z²yk|j|ƒ|jj
dƒ|tj|jƒkr£tdtdƒƒ‚n|jƒtj||ƒWn@tk
r}|jjtdƒ||jfƒtjdƒSXWd|jƒXtjdƒS(scServer command for putting a largefile into a repository's local store
    and into the user cache.t
createmodeis$largefile contents do not match hashs,largefiles: failed to put %s into store: %s
iN(tredirectRt	storepathRtmakedirstostpathtdirnametatomictempfiletstoreRtgetfilet_fptseekthexsha1tIOErrorRtclosetlinktousercachetuitwarntstrerrorRtpushrestdiscard(trepotprototshaRttmpfpte((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pytputlfile#s$


c@s~tj||ƒ}|s4tjtdƒ|ƒ‚nt|dƒ‰tjˆjƒƒd‰‡‡fd†}t	j
|ƒƒS(s\Server command for retrieving a largefile from the repository-local
    cache or user cache.s+requested largefile %s not present in cachetrbic3@s,dˆVxtjˆƒD]}|VqWdS(Ns%d
(Rt
filechunkiter(tchunk(tftlength(s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyt	generatorKs	(RtfindfileRtAbortRtopenRtfstattfilenoRt	streamres(RRRtfilenameR'((R%R&s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pytgetlfile<s
cC@s tj||ƒ}|sdSdS(s;Server command for checking if a largefile is present - returns '2
' if
    the largefile is missing, '0
' if it seems to be in good condition.

    The value 1 is reserved for mismatched checksum, but that is too expensive
    to be verified on every stat and must be caught be running 'hg verify'
    server side.s2
s0
(RR((RRRR.((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyt	statlfileQscC@s&d|jfd„ƒY}||_dS(NtlfileswirerepositorycB@s,eZd„Zd„Zejd„ƒZRS(c
S@s\t|jtjƒrΘ|jdd|d|didd6ƒ}yY|jddƒ\}}x0|jtƒD]}|jjt	d	ƒ|ƒqhWt
|ƒSWqXtk
rΔ|jjt	d
ƒ|ƒdSXnyS|jd|d|ƒ\}}|dkrt
jt	dƒ|ƒ‚nt
|ƒSWn:tk
r/dStk
rWt
jt	d
ƒ|ƒ‚nXdS(NR!tdataRtheaderssapplication/mercurial-0.1scontent-types
isremote: s!unexpected putlfile response: %r
tsputlfile failed:s&putlfile failed (unexpected response):(t
issubclasst	__class__Rt_calltsplitt
splitlinestTrueRRRtintt
ValueErrort	_callpushRt
ResponseErrorR(tselfRtfdtrestdtoutputtltret((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyR!_s,


cs@sά|jdd|ƒ}|jƒ}yt|ƒ}Wn0tk
rc|jtjtdƒ|ƒƒnXx"tj	|d|ƒD]}|VqzWt
|jtjƒrΨ|j
dƒ}|rΨ|jtjtdƒ|ƒƒqΨndS(s<returns an iterable with the chunks of the file with sha shaR/Rsunexpected response:tlimitiN(t_callstreamtreadlineR;R<t_abortRR>RRR#R5R6Rtread(R?RtstreamR&R$((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyR/~s
	cs@s\tjƒ}i|d6}||fVyt|jƒVWnttjfk
rWdVnXdS(NRi(RtfutureR;tvalueR<turlerrt	httperror(R?RR%tresult((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyR0“s
(t__name__t
__module__R!R/Rt	batchableR0(((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyR1^s		(R6(RRR1((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyt
wirereposetup]sCcC@st||ƒdS(s;Wrap server command to announce largefile server capabilitys largefiles=serve(tcapabilitiesorig(RR((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pytcapabilities€scC@s,tj|ƒrtjtƒStj||ƒS(sTWrap server command - largefile capable clients will know to call
    lheads instead(RtislfilesrepoRtooberrortLARGEFILES_REQUIRED_MSGtheads(RR((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyRZ¨s
cK@sl|dkr$|jdƒr$d}n|dkr\|jdƒr\|djddƒ|d<nt|||S(NRZt
largefilestlheadstbatchtcmdssheads slheads (tcapabletreplacetssholdcallstream(R?tcmdtargs((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pytsshrepocallstream―s
	s(^|;)heads\bcK@sl|dkr$|jdƒr$d}n|dkr\|jdƒr\tjd|dƒ|d<nt|||S(NRZR[R\R]R^(R_theadsretsubthttpoldcallstream(R?RbRc((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pythttprepocallstreamΈs
	(t
__future__RRtretmercurial.i18nRt	mercurialRRRRR4RRNturlreqRYtNoneRURaRgR!R/R0RTRVRZRdtcompileReRh(((s:/usr/lib/python2.7/dist-packages/hgext/largefiles/proto.pyt<module>s("						G