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/streamclone.pyc
ó
ÛXc@@sÔddlmZddlZddlZddlmZddlmZmZm	Z	m
Z
ed„Zd„Z
d„Zd	„Zd
„Zd„Zdd
„Zd„Zd„Zd„Zdefd„ƒYZdS(i(tabsolute_importNi(t_(t	branchmapterrortstoretutilcC@sA|j}|j}t}|jrHd|jjdgƒkrHt}qHn|r^|r^tdfSt|ƒrttdfS|j	r‡tdfS|j
}|dkr®|jdƒ}n|s¾tdfStƒ}|jdƒræ|j
dƒnQ|jdƒ}|stdfSt|jdƒƒ}||jr1tdfS|}t|fS(s÷Whether it is possible to perform a streaming clone as part of pull.

    ``bailifbundle2supported`` will cause the function to return False if
    bundle2 stream clones are supported. It should only be called by the
    legacy stream clone code path.

    Returns a tuple of (supported, requirements). ``supported`` is True if
    streaming clone is supported and False otherwise. ``requirements`` is
    a set of repo requirements from the remote, or ``None`` if stream clone
    isn't supported.
    tv1tstreamsstream-preferredtrevlogv1t
streamreqst,N(trepotremotetFalset
canusebundle2tremotebundle2capstgettTruetNonetlentheadststreamclonerequestedtcapabletsettaddtsplittsupportedformats(tpulloptbailifbundle2supportedRRtbundle2supportedtstreamrequestedtrequirementsR	((s9/usr/lib/python2.7/dist-packages/mercurial/streamclone.pytcanperformstreamclones8			

	
	
		


c	C@st|ƒ\}}|sdS|j}|j}d}|jdƒrR|jƒ}n|jjtdƒƒ|j	ƒ}|j
ƒ}yt|ƒ}Wn)tk
r»t
jtdƒ|ƒ‚nX|dkràt
jtdƒƒ‚nH|dkrt
jtdƒƒ‚n$|d	kr(t
jtd
ƒƒ‚n|j
ƒ}y%tt|jddƒƒ\}	}
Wn/ttfk
rŠt
jtdƒ|ƒ‚nX|jƒft|||	|
ƒ||j|jB|_|jƒ|jƒ|rïtj||ƒn|jƒWdQXdS(sðPossibly perform a legacy stream clone operation.

    Legacy stream clones are performed as part of pull but before all other
    operations.

    A legacy stream clone will not be performed if a bundle2 stream clone is
    supported.
    NRsstreaming all changes
s'unexpected response from remote server:isoperation forbidden by serveris$locking the remote repository failedis%the server sent an unknown error codet (R RRRRRtuitstatusRt
stream_outtreadlinetintt
ValueErrorRt
ResponseErrortAborttmapRt	TypeErrortlockt	consumev1RRt_applyopenerreqst_writerequirementstreplacecachet
invalidate(Rt	supportedRRRt
rbranchmaptfptltrespt	filecountt	bytecount((s9/usr/lib/python2.7/dist-packages/mercurial/streamclone.pytmaybeperformlegacystreamclone^sJ			
%


cC@s|jddtdtƒS(s5Whether streaming clones are allowed from the server.tservertuncompressedt	untrusted(t
configboolR(R"((s9/usr/lib/python2.7/dist-packages/mercurial/streamclone.pytallowservergenerationœscC@s
|jjƒS(N(Rtwalk(R((s9/usr/lib/python2.7/dist-packages/mercurial/streamclone.pyt_walkstreamfiles¡sc@síg‰d}ˆjƒ[ˆjjdƒxCtˆƒD]5\}}}|r6ˆj||fƒ||7}q6q6WWdQXˆjjdtˆƒ|fƒˆj‰ˆj‰ˆjj‰t	ˆ_‡‡‡‡‡fd†}tˆƒ||ƒfS(sËEmit content for version 1 of a streaming clone.

    This returns a 3-tuple of (file count, byte size, data iterator).

    The data iterator consists of N entries for each file being transferred.
    Each file entry starts as a line with the file name and integer size
    delimited by a null byte.

    The raw file data follows. Following the raw file data is the next file
    entry, or EOF.

    When used on the wire protocol, an additional line indicating protocol
    success will be prepended to the stream. This function is not responsible
    for adding it.

    This function will obtain a repository lock to ensure a consistent view of
    the store is captured. It therefore may raise LockError.
    is	scanning
Ns%d files, %d bytes to transfer
c3@sÇz¶x¯ˆD]§\}}ˆr9ˆjjd||fƒndtj|ƒ|fV|dkr†ˆ|dƒ}|j|ƒVWdQXq
x(tjˆ|ƒd|ƒD]}|Vq¢Wq
WWdˆˆ_XdS(Nssending %s (%d bytes)
s%s%d
itrbtlimit(R"tdebugRt	encodedirtreadRt
filechunkitert	mustaudit(tnametsizeR4tchunk(t	debugflagtentriestoldauditRtsvfs(s9/usr/lib/python2.7/dist-packages/mercurial/streamclone.pytemitrevlogdataÉs"(
R,R"RCR@tappendRRNRGRKR
(Rttotal_bytesRHtenameRIRO((RKRLRMRRNs9/usr/lib/python2.7/dist-packages/mercurial/streamclone.pyt
generatev1¤s 
			cc@s>t|ƒ\}}}d||fVx|D]}|Vq+WdS(s¸Emit content for version 1 of streaming clone suitable for the wire.

    This is the data output from ``generatev1()`` with a header line
    indicating file count and byte size.
    s%d %d
N(RS(RR7R8titRJ((s9/usr/lib/python2.7/dist-packages/mercurial/streamclone.pytgeneratev1wireprotoÛs
tUNc@sbˆdkrtdƒ‚nˆjˆj@}djt|ƒƒ‰‡‡‡fd†}||ƒfS(s@Emit content for version 1 of a stream clone bundle.

    The first 4 bytes of the output ("HGS1") denote this as stream clone
    bundle version 1.

    The next 2 bytes indicate the compression type. Only "UN" is currently
    supported.

    The next 16 bytes are two 64-bit big endian unsigned integers indicating
    file count and byte count, respectively.

    The next 2 bytes is a 16-bit big endian unsigned short declaring the length
    of the requirements string, including a trailing . The following N bytes
    are the requirements string, which is ASCII containing a comma-delimited
    list of repo requirements that are needed to support the data.

    The remaining content is the output of ``generatev1()`` (which may be
    compressed in the future).

    Returns a tuple of (requirements, data generator).
    RVs.we do not support the compression argument yetR
c	3@s(dVˆVtˆƒ\}}}ˆjjtdƒ||fƒtjd||ƒVtjdtˆƒdƒVˆdVˆdks‰t‚d}ˆjjtd	ƒdd
|dtdƒƒxN|D]F}|t|ƒ7}ˆjjtd	ƒ|d
|dtdƒƒ|VqÁWˆjjtd	ƒdƒdS(
NtHGS1swriting %d bytes for %d files
s>QQs>HisRVitbundlettotaltunittbytes(
RSR"R#RtstructtpackRtAssertionErrortprogressR(R7R8RTtseenRJ(tcompressionRtrequires(s9/usr/lib/python2.7/dist-packages/mercurial/streamclone.pytgens"	+

	(R'RRtjointsorted(RRaRRc((RaRRbs9/usr/lib/python2.7/dist-packages/mercurial/streamclone.pytgeneratebundlev1æscC@sƒ|jƒq|jjtdƒ|tj|ƒfƒd}|jjtdƒdd|dtdƒƒtjƒ}|jdƒ~|j	j
|jd|ƒLxDt|ƒD]6}|jƒ}y(|j
dd	ƒ\}}	t|	ƒ}	Wn/ttfk
rtjtd
ƒ|ƒ‚nX|jjrJ|jjd|tj|	ƒfƒntj|ƒ}
|j	|
dd
tƒo}xetj|d|	ƒD]N}|t|ƒ7}|jjtdƒ|d|dtdƒƒ|j|ƒqŠWWdQXq¬WWdQX|jdtƒWdQXtjƒ|}
|
dkr'd}
n|jjtdƒdƒ|jjtdƒtj|ƒ|
tj||
ƒfƒWdQXdS(sApply the contents from version 1 of a streaming clone file handle.

    This takes the output from "streamout" and applies it to the specified
    repository.

    Like "streamout," the status line added by the wire protocol is not handled
    by this function.
    s!%d files to transfer, %s of data
itcloneRYRZR[t
expectedcountsis'unexpected response from remote server:sadding %s (%s)
twtbackgroundcloseRBNtclearfilecachegü©ñÒMbP?s(transferred %s in %.1f seconds (%s/sec)
(R,R"R#RRR8R_ttimettransactionRNtbackgroundclosingtxrangeR%RR&R'R+RR(RKRCRt	decodedirRRFRtwriteR1R(RR4R7R8t
handled_byteststarttiR5RHRItpathtofpRJtelapsed((s9/usr/lib/python2.7/dist-packages/mercurial/streamclone.pyR-sD	
+!	cC@sØ|jdƒ}|dkr7tjtdƒ|ƒ‚ntjd|jdƒƒ\}}tjd|jdƒƒd}|j|ƒ}|jdƒs­tjtd	ƒƒ‚nt|jdƒj	d
ƒƒ}|||fS(NiRVs<only uncompressed stream clone bundles are supported; got %ss>QQis>Hiss@malformed stream clone bundle: requirements not properly encodedR
(
RERR)RR\tunpacktendswithRtrstripR(R4RaR7R8trequireslenRbR((s9/usr/lib/python2.7/dist-packages/mercurial/streamclone.pytreadbundle1header_s
!cC@sŽt|ƒr$tjtdƒƒ‚nt|ƒ\}}}||j}|rwtjtdƒdjt|ƒƒƒ‚nt||||ƒdS(sºApply the content from a stream clone bundle version 1.

    We assume the 4 byte header has been read and validated and the file handle
    is at the 2 byte compression identifier.
    s2cannot apply stream clone bundle on non-empty repos4unable to apply stream clone: unsupported format: %ss, N(	RRR)RR|RRdReR-(RR4R7R8Rtmissingreqs((s9/usr/lib/python2.7/dist-packages/mercurial/streamclone.pyt
applybundlev1qs
tstreamcloneappliercB@s eZdZd„Zd„ZRS(s¿Class to manage applying streaming clone bundles.

    We need to wrap ``applybundlev1()`` in a dedicated type to enable bundle
    readers to perform bundle type-specific functionality.
    cC@s
||_dS(N(t_fh(tselftfh((s9/usr/lib/python2.7/dist-packages/mercurial/streamclone.pyt__init__ŠscC@st||jƒS(N(R~R€(RR((s9/usr/lib/python2.7/dist-packages/mercurial/streamclone.pytapplys(t__name__t
__module__t__doc__RƒR„(((s9/usr/lib/python2.7/dist-packages/mercurial/streamclone.pyR„s	(t
__future__RR\Rlti18nRtRRRRR
R R9R>R@RSRURfR-R|R~tobjectR(((s9/usr/lib/python2.7/dist-packages/mercurial/streamclone.pyt<module>s"I	>			7	8	A